Is message or thread a reserved/keyword for your database? Try using cfqueryparam.
Kore Peterson
Database Development Specialist
SEH - Minneapolis
612.758.6739
"Jeremy
Bunton" To: CF-Talk <[EMAIL PROTECTED]>
<jeremy@thinkc cc:
reate.com> Subject: supposedly simple query
10/15/2002
03:23 PM
Please respond
to cf-talk
I have this VERY simple query like
<cfquery name="getmessages" datasource="mydns">
select * from message
where thread = #threadnumber#
</cfquery>
where #threadnumber# is set by <cfset threadnumber=#trim(URL.thread)#>
coming from a <cflocation
url="messages.cfm?thread=<cfoutput>#formthread#</cfoutput>">
If I hard code in a number no problem it works but for some odd reason
using
the above I get
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
in
query expression 'thread = 45'.
Both fields are intergers. What ya think.
Jeremy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm

