Please Help,
I know this is a simple question but for some reason I can not get it to work. I am passing a parameter through the URL and then I would like to run a query off of that parameter, but I can not get it to work. I have tried the Where statement many different ways.
Here is my code:
<cfquery datasource="printer" name="aboutPrinters">
Select * From Printer
Where PrinterID = #URL.PrinterID#
</cfquery>
Here is my error:
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.
Any help would be great.
Thanks,
JodyMarie
I know this is a simple question but for some reason I can not get it to work. I am passing a parameter through the URL and then I would like to run a query off of that parameter, but I can not get it to work. I have tried the Where statement many different ways.
Here is my code:
<cfquery datasource="printer" name="aboutPrinters">
Select * From Printer
Where PrinterID = #URL.PrinterID#
</cfquery>
Here is my error:
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.
Any help would be great.
Thanks,
JodyMarie