I would imagine this is a string you're passing in, right?

sqlstmt = "SELECT * from tbluser WHERE User ='" & strUser & "'"

You need to make sure it realizes you're passing in a string.

Chris Tifer


----- Original Message -----
From: "Jon Barnhardt" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 11:09 AM
Subject: SQL query


I'm doing a SIMPLE query against an access database and for some reason it
doesn't like me.

here is the statement:
sqlstmt = "SELECT * from tbluser WHERE User =" & strUser
Here is the error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in
query expression 'User =Chris K'.

what gives??  I just can't see it today...

Thanks again for the help
Jon



---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to