I have a Dlookup Function that performs perfectly if their is data but when there isn't data I run into the runtime error. What is the best way to work around this so my users aren't getting a error.
Code:
[Punch ID] = Nz(DLookup("[Punch ID]", "[Copy of Employee Work Statistics1]", "Employee='" & Forms![Royal time Stamp]![Driver] & "' And [Date]=#" & Date & "#" & " And [Trip Sign Off]=0"), 0)
Comment