<ro****@tauex.tau.ac.il> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
I need an SQL statemnt in access to serv me in authentication form.
What is the syntax for it?
this is what I wrote & I got error.
string sqlFindUserPswrd = "SELECT COUNT(UserName) AS UserNameExists " +
"FROM usersTbl " +"WHERE (UserName='" + username + "' , Password = "
+ password + ")";
In VBA? Well some of those joins look unnecessary but the join character is
"&" not "+". Not tested, but how about
:
string sqlFindUserPswrd = "SELECT COUNT(UserName) AS UserNameExists FROM
usersTbl WHERE (UserName = '" & username & "' AND Password = '" & password &
"')";
Regards,
Keith.
www.keithwilby.com