472,143 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

SQL statment...

59
hello everyone ! :)

I have a problam with a asp page I'm making
I'm getting this error:

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'R_EMAIL = faker@fakemail.com'.

this is the code
rs.Open "SELECT * FROM stats WHERE R_EMAIL = " & REmail & "",my_Conn,1,3

anyone can see something wrong with it ?

thank you from advance, Idan
have a nice week !
Sep 11 '07 #1
2 1040
hello everyone ! :)

I have a problam with a asp page I'm making
I'm getting this error:

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'R_EMAIL = xxx@xxx.com'.

this is the code
rs.Open "SELECT * FROM stats WHERE R_EMAIL = " & REmail & "",my_Conn,1,3

anyone can see something wrong with it ?

thank you from advance, Idan
have a nice week !

Looks like a quote problem! Try enclosing REMail in quotes like:

rs.Open "SELECT * FROM stats WHERE R_EMAIL = ' " & REmail & " ' " & my_Conn,1,3
Sep 11 '07 #2
zivon
59
thank you very much :)
I tried to add " not ' as you said... heh...
Sep 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by e_AK_05 | last post: by
9 posts views Thread by Appel | last post: by
1 post views Thread by Maria | last post: by
8 posts views Thread by 73blazer | last post: by
1 post views Thread by Me, Myself, and I | last post: by
4 posts views Thread by huzzaa | last post: by
1 post views Thread by zeebiggie | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.