Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

join not supported

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
I got this error message on this sql statement:
"SELECT CandidateContactInfo.*, EmployerInfo.* " _
& "FROM CandidateContactInfo LEFT JOIN EmployerInfo " _
& "ON UserName='" & Request.QueryString("txtUserName") & "'OR UserName='" & session("UserName") _
& "' AND Password='" & Request.QueryString("txtPassword") & "'OR Password='" & session("Password") & "'"



Is join really not supported? Where is it not supported and why?
 
Doesnt look like you are joining correctly. SEE BOLD for example .. assuming that the tables have a relationship

"SELECT CandidateContactInfo.*, EmployerInfo.* " & _
"FROM CandidateContactInfo " & _
"LEFT JOIN EmployerInfo ON EmployerInfo.field = " & _
"CandidateContactInfo.field ..... " & _
"WHERE
UserName='" & Request.QueryString("txtUserName") & "'OR UserName='" & session("UserName") _
& "' AND Password='" & Request.QueryString("txtPassword") & "'OR Password='" & session("Password") & "'"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top