Question
Problem with WHERE clause
I want users to be able to search a database by last name,
when I add the WHERE clause to my SQL statement I receive the
following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in C:\Inetpub\wwwroot\spl_web_site\public_records\search_action.cfm: line 13
11 : SELECT customer_info.first_name, customer_info.last_name, rec_request.action
12 : FROM customer_info INNER JOIN rec_request ON customer_info.cust_id = rec_request.new_id
13 : WHERE customer_info.last_name = #FORM.last_name#
14 : </cfquery>
15 : <body>
Here is my code so far:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in C:\Inetpub\wwwroot\spl_web_site\public_records\search_action.cfm: line 13
11 : SELECT customer_info.first_name, customer_info.last_name, rec_request.action
12 : FROM customer_info INNER JOIN rec_request ON customer_info.cust_id = rec_request.new_id
13 : WHERE customer_info.last_name = #FORM.last_name#
14 : </cfquery>
15 : <body>
Here is my code so far: