K
Kman
Hi,
I am trying to validate that a record doesn't exist using a dlookup function
based on Date and EmployeeID in a table that has only three fields; DateIn,
EmplyeeID and TimeIn, but I get a runtime "error 13 - type mismatch". Can
anyone help? Here is the sample of code where the runtime error occurs:
varResult = DLookup("TimeOn", "TimeOn", EmployeeID =
Forms!ClockOn!EmployeeID And "DateIn = " & Format(Forms!ClockOn!DateIn,
"\#mm\/dd\/yyyy\#"))
I am trying to validate that a record doesn't exist using a dlookup function
based on Date and EmployeeID in a table that has only three fields; DateIn,
EmplyeeID and TimeIn, but I get a runtime "error 13 - type mismatch". Can
anyone help? Here is the sample of code where the runtime error occurs:
varResult = DLookup("TimeOn", "TimeOn", EmployeeID =
Forms!ClockOn!EmployeeID And "DateIn = " & Format(Forms!ClockOn!DateIn,
"\#mm\/dd\/yyyy\#"))