Error Too few parameteres expect 1

W

wildt

Works fine.

Recid = rs("id")
SQLstmt = "SELECT * FROM courses WHERE ID=" &
Request.QueryString("Recid")

When i combine two tables

SQLstmt = "SELECT tblAuthor.employee_code, tblAuthor.name,
Courses.status, Courses.ID, Courses.mdate, Courses.InstructorID, FROM
tblAuthor INNER JOIN Courses ON tblAuthor.employee_code =
Courses.InstructorID WHERE Course.ID=" & Request.QueryString("Recid")

i get Too few parameteres expect 1
is it a syntax error?
 
J

jbongran

wildt said:
Works fine.

Recid = rs("id")
SQLstmt = "SELECT * FROM courses WHERE ID=" &
Request.QueryString("Recid")

When i combine two tables

SQLstmt = "SELECT tblAuthor.employee_code, tblAuthor.name,
Courses.status, Courses.ID, Courses.mdate, Courses.InstructorID, FROM
tblAuthor INNER JOIN Courses ON tblAuthor.employee_code =
Courses.InstructorID WHERE Course.ID=" & Request.QueryString("Recid")

i get Too few parameteres expect 1
is it a syntax error?

Is it a typo ?
WHERE Course.ID where it should be WHERE Courses.ID
Are you sure Recid is always populated ?
Do a
Response.Write "<b>SQLstmt :</b>" & SQLstmt & "<br>" & vbCrLf
Response.Flush
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top