I am stumped on a query error. the first query runs fine in the code. the second one generates the error shown below the code... any one have an idea why?
<cfquery name="findresponseto" datasource="#datasource#" dbtype="ODBC">
SELECT responseto
FROM tlkpresponseto
WHERE responsetoid = #responsetoid#
</cfquery>
#findresponseto.responseto#
</td>
<td><cfquery name="findeventname" datasource="#datasource#" dbtype="ODBC">
SELECT eventnm
FROM tlkpeventnm
WHERE eventnmid = #eventnmid#
</cfquery>
=============================
Error Occurred While Processing Request
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'eventnmid ='.
SQL = "SELECT eventnm FROM tlkpeventnm WHERE eventnmid ="
Data Source = "JUSTICEGATE"
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (900:9) to (900:78) in the template file C:\Inetpub\
Date/Time: 10/29/01 09:18:53
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
Remote Address: 192.168.0.3
Query String: formname=donation&mainid=13306
<cfquery name="findresponseto" datasource="#datasource#" dbtype="ODBC">
SELECT responseto
FROM tlkpresponseto
WHERE responsetoid = #responsetoid#
</cfquery>
#findresponseto.responseto#
</td>
<td><cfquery name="findeventname" datasource="#datasource#" dbtype="ODBC">
SELECT eventnm
FROM tlkpeventnm
WHERE eventnmid = #eventnmid#
</cfquery>
=============================
Error Occurred While Processing Request
Error Diagnostic Information
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'eventnmid ='.
SQL = "SELECT eventnm FROM tlkpeventnm WHERE eventnmid ="
Data Source = "JUSTICEGATE"
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (900:9) to (900:78) in the template file C:\Inetpub\
Date/Time: 10/29/01 09:18:53
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
Remote Address: 192.168.0.3
Query String: formname=donation&mainid=13306