Question
Problem with Query
Hi
I have the following queiry
<cfquery name="searchall" datasource="Ciasa" dbtype="ODBC">
SELECT cd.studentID,
cd.caseworkerid,
cd.collegeid,
cd.studentlastname,
cd.studentfirstname,
cd.staddress,
cw.casworkerfirstname,
cw.casworkerlaststname,
cw.caseworkerid,
b.collegename,
b.collegeid
FROM students cd, caseworker cw, college b
WHERE studentlastname like '#choose#%'
AND cw.caseworkerid = cd.caseworkerid
AND cd.collegeid = b.collegeid
ORDER BY cd.studentlastname
</cfquery>
It is displaying the error
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in C:\Inetpub\wwwroot\CFDOCS\ciasa\oct08\login\staff\search1.cfm: line 46
44 : b.collegeid
45 : FROM students cd, caseworker cw, college b
46 : WHERE studentlastname like '#choose#%'
47 : AND cw.caseworkerid = cd.caseworkerid
48 : AND cd.collegeid = b.collegeid
I have used this code before and it works fine but i cannot see what the problem is. Please help me to find the problem
Thanks
I have the following queiry
<cfquery name="searchall" datasource="Ciasa" dbtype="ODBC">
SELECT cd.studentID,
cd.caseworkerid,
cd.collegeid,
cd.studentlastname,
cd.studentfirstname,
cd.staddress,
cw.casworkerfirstname,
cw.casworkerlaststname,
cw.caseworkerid,
b.collegename,
b.collegeid
FROM students cd, caseworker cw, college b
WHERE studentlastname like '#choose#%'
AND cw.caseworkerid = cd.caseworkerid
AND cd.collegeid = b.collegeid
ORDER BY cd.studentlastname
</cfquery>
It is displaying the error
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in C:\Inetpub\wwwroot\CFDOCS\ciasa\oct08\login\staff\search1.cfm: line 46
44 : b.collegeid
45 : FROM students cd, caseworker cw, college b
46 : WHERE studentlastname like '#choose#%'
47 : AND cw.caseworkerid = cd.caseworkerid
48 : AND cd.collegeid = b.collegeid
I have used this code before and it works fine but i cannot see what the problem is. Please help me to find the problem
Thanks
