Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error in a Where Statement

Status
Not open for further replies.

Leventcos21

Technical User
Oct 7, 2004
77
US
I am having a problem with adding an AND into the WHERE below. The user has can not login unless they USERID matches and there PERMISSIONID which has already been assigned.



This works but I want to add an AND into the statement.
Code:
("SELECT tblemployees.EmployeeID AS PersonID, tblemployees.permissionid " & _
"FROM tblemployees " & _
"WHERE UserID = '" & Me.txtUserID & _
"' AND PasswordTraining = '" & Me.txtPassword & "'", dbOpenSnapshot)

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top