Hi All
In have a form that request the user to type the username and password before being able to enter the main screen.
However, the username and password are located in a table called tblLogin. Im trying to match of the username from the form with the password within the table, and if there is a match then they can enter.
My table has 3 columns - ID | Employee | Password
i have the following code but it will not execute.
Dim sPass As Boolean
sPass = DLookup(Me.cbxEmployee, "tblLogin", "password = " & Me.lblPassword)
Please can someone help, thanks
In have a form that request the user to type the username and password before being able to enter the main screen.
However, the username and password are located in a table called tblLogin. Im trying to match of the username from the form with the password within the table, and if there is a match then they can enter.
My table has 3 columns - ID | Employee | Password
i have the following code but it will not execute.
Dim sPass As Boolean
sPass = DLookup(Me.cbxEmployee, "tblLogin", "password = " & Me.lblPassword)
Please can someone help, thanks