Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: SQL Query in Access ASP


Message #1 by "Stephen Proctor" <steveproctor@c...> on Sat, 20 Apr 2002 15:13:46
I hope I'm not off-list, but can someone help with the following SQL query 
that I'm using in Access and ASP.

The following SQL query does not work:

strSQL= "SELECT * FROM OfficersDirectors WHERE LastName = '" & strLastName 
& " ' " & _
	 " AND FirstName = '" & strFirstName & " ' " & _
	  " AND Position = '" & strPosition & " ' "

However, the following SQL query works fine:

strSQL= "SELECT * FROM OfficersDirectors WHERE LastName = '" & strLastName 
& " ' " & _
	 " AND FirstName = '" & strFirstName & " ' "

What's the difference?

Thanks.

Steve

  Return to Index