Hi
I want to check whether a password entered in a form for a student corresponds with the password in a table in access. The code below does not seem to work. Can anyone help? I know the names of my tables and fields are correct.
If Me.Password.Value = DLookup("[Password]", "Student", "StudentID = " & [StudentID]) Then
MsgBox ("login successfull")
Else
Call MsgBox("Password Invalid. Please Try Again", vbOKOnly, "Invalid Entry!")
End If
I want to check whether a password entered in a form for a student corresponds with the password in a table in access. The code below does not seem to work. Can anyone help? I know the names of my tables and fields are correct.
If Me.Password.Value = DLookup("[Password]", "Student", "StudentID = " & [StudentID]) Then
MsgBox ("login successfull")
Else
Call MsgBox("Password Invalid. Please Try Again", vbOKOnly, "Invalid Entry!")
End If