Where's the syntax error in this DLookUP Query please, when there's a NULL value in WorkPackID field? If it is NOT NULL, it works fine.
DLookup("EmployeeID", "tblEmployee_WorkPack", "WorkPackID = " & Me.WorkPackID & " And DateValue(Assignment_Date) = DateValue(#" & Me.Assignment_Date & "#) And EmployeeID = " & Me.EmployeeID)
Attaching error screenshot.
Thanks,
K
DLookup("EmployeeID", "tblEmployee_WorkPack", "WorkPackID = " & Me.WorkPackID & " And DateValue(Assignment_Date) = DateValue(#" & Me.Assignment_Date & "#) And EmployeeID = " & Me.EmployeeID)
Attaching error screenshot.
Thanks,
K