Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
Access Driver] Data type mismatch in criteria expression.
The error occurred in Z:\users\ia-fall2007\davon\epmk\inbox.cfm: line 5
3 : SELECT from_user, message_content, datesent, new, timesent, to_user,
subject, mem_num
4 : FROM private_msg
5 : WHERE mem_num = #sid#
6 : </cfquery>
7 : <html>
Thanks for any help that cna be provided
the link i setup for it is:
inbox.cfm?sid=#session.user_id#
<cfquery datasource="dsn" name="inbox">
SELECT from_user, message_content, datesent, new, timesent, to_user, subject,
mem_num
FROM private_msg
WHERE mem_num = #sid# <---this is where the error points to
</cfquery>
paross1 - 26 Jun 2008 22:00 GMT
What is the data type of mem_num? Could it perhaps be text? If so, try putting single quotes around '#sid#' or better still, use CFQUERYPARAM
WHERE mem_num = '#sid#'
Phil
GArlington - 27 Jun 2008 11:56 GMT
> Error Executing Database Query.
> [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
[quoted text clipped - 21 lines]
> WHERE mem_num = #sid# <---this is where the error points to
> </cfquery>
Please, please, please STOP using Access DB, it is for your home
records collection, NOT for anything else...
I suspect that your "mem_num" in DB is NOT numeric.