Validate User Login Credentials

Joe B.

Registered User.
Local time
Today, 08:44
Joined
Mar 16, 2012
Messages
34
Hi All,

I have created a user login form with two test boxes, one for Employee and the other for Password. I also created a Command button to Enter. I then created an Employees table with three fields, ID, EmployeeName, and Password.

How can I get the Command button to validate the Employee Name and associated Password are in the table when the user clicks the button.

Thanks and enjoy the weekend.

Joe B.
 
One way:

If DLookup("UserPassword", "tblUsers", "UserName = '" & Me.txtUserID & "'") <> Me.txtPW Then
 

Users who are viewing this thread

Back
Top Bottom