A family of Microsoft relational database management systems designed for ease of use.
Are you sure the DLookup is correct:
- If Me.txtPassword.Value = DLookup("Password", "Users", _
- "[Users]=" & Me.cboUser.Value) Then
If "Users" is a Column in the Users table, then you might be okay with that syntax. However, if the name of that column is "User" then you'd need to change that to reflect the correct name.
Also, if that column is a Text field the DLookup should probably look like this:
Nz(DLookup("Password", "Users", "User='" & Me.cboUser & "'"),"")
That would return either (a) the Password, if it's found by that User or (b) a Zero Length String, if the password is not found. Either way, you'd compare it to the password entered by the user.
I do agree with Tom that words such as "User" should not be used when programming.