R
RGFlade
I would say I'm an advanced beginner. . .
I have a database of employees. I want only the employee
to be able to update their record. So in the Employee
database I have their ES No (7 digit text) and Password
(20 digit text). I have this formula:
If (DLookup("[Password]", "Employees", "[ES No] =" &
Me.TxtBoxESNo) = Me.TxtBoxPassword) Then
DoCmd.RunMacro "OpenPassword"
Else
MsgBox "Incorrect Password. Please Try Again."
End If
but when I run this I get:
Run-time error '3464':
Data type mismatch in criteria expression
Any ideas?
Thanks for any help.
I have a database of employees. I want only the employee
to be able to update their record. So in the Employee
database I have their ES No (7 digit text) and Password
(20 digit text). I have this formula:
If (DLookup("[Password]", "Employees", "[ES No] =" &
Me.TxtBoxESNo) = Me.TxtBoxPassword) Then
DoCmd.RunMacro "OpenPassword"
Else
MsgBox "Incorrect Password. Please Try Again."
End If
but when I run this I get:
Run-time error '3464':
Data type mismatch in criteria expression
Any ideas?
Thanks for any help.