I have a database where a user inputs a password and I check the table record to see if it is there to grant them access to the forms. This is the code I am using but it only finds the first record in the table. I want it to search the whole column.
Dim db As Database, rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("users", dbOpenTable)
Key = rs.Fields("password"
Password = InputBox("Enter your password"
If Password = Key Then
MsgBox ("this Works"
else
msgbox("Wrong Password"
Can someone please help me, Thank You Travis