469,313 Members | 2,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

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 978
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.