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?

Re: Error Too few parameteres expect 1 by Aaron

Aaron
Mon Jul 21 12:55:17 CDT 2003

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

Tough to tell. SHow us what

response.write SQLstmt

yields...



Re: Error Too few parameteres expect 1 by Ray

Ray
Mon Jul 21 13:04:05 CDT 2003

Do you have a querystring value for the "recid" key?

Ray at work


"wildt" <wildtfree48@yahoo.com> wrote in message
news:f69f166d.0307210954.4e055ff9@posting.google.com...
> 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?



Re: Error Too few parameteres expect 1 by jbongran

jbongran
Thu Jul 24 10:28:56 CDT 2003


"wildt" <wildtfree48@yahoo.com> a écrit dans le message de
news:f69f166d.0307210954.4e055ff9@posting.google.com...
> 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