I can't get the following to evaluate correctly
varTI5 = Nz(DLookup("TimeIn", "tblTimeCard", "Employee = '" & Me.Combo6 & "' AND DateIn = #" & varThuDate & "#"))
Me.txtTI5 = IIf(IsNull(varTI5), "", Format(varTI5, "short time") & " " & Format(varThuDate, "mm/dd/yy"))
Whether varTI5 is null or not it returns varThuDate. Would someone tell me what I'm doing wrong? Thanks...
varTI5 = Nz(DLookup("TimeIn", "tblTimeCard", "Employee = '" & Me.Combo6 & "' AND DateIn = #" & varThuDate & "#"))
Me.txtTI5 = IIf(IsNull(varTI5), "", Format(varTI5, "short time") & " " & Format(varThuDate, "mm/dd/yy"))
Whether varTI5 is null or not it returns varThuDate. Would someone tell me what I'm doing wrong? Thanks...