I have the following on the AfterUpdate property of a control on a form:
If DLookup("[Employee Number]", "tblEmployee", "[4SSN] = " & Me![txtpass]) Then.....
After I enter the password on the form I keep getting the error "data type mismatch in criteria expression"
4SSN is a text field in the table 'tblEmployee' (I made it text so I didn't lose my leading zeroes)
and txtpass is an unbound textbox on the form.
Can someone please help??
If DLookup("[Employee Number]", "tblEmployee", "[4SSN] = " & Me![txtpass]) Then.....
After I enter the password on the form I keep getting the error "data type mismatch in criteria expression"
4SSN is a text field in the table 'tblEmployee' (I made it text so I didn't lose my leading zeroes)
and txtpass is an unbound textbox on the form.
Can someone please help??