I can't figure this one out. I keep stumbling my way through DLookups...
Please help!
x = Nz(DLookup("ID1", "AttendanceEvents", "EventDate= #" & txtRmvP & "# and USRI = ' " & fOSUserName() & " ' and (EventTypeCode = 'P' or EventTypeCode = 'SS-P' "), 0)
I'm getting a mix of errors when I try to correct it. With the version above, I get:
Missing ),] or item in query expression 'Event date = #3/31/17# and USRI = 't3arf' and (EventTypeCode = 'P' or EventTypeCode = 'SS-P' '.
Please help!
x = Nz(DLookup("ID1", "AttendanceEvents", "EventDate= #" & txtRmvP & "# and USRI = ' " & fOSUserName() & " ' and (EventTypeCode = 'P' or EventTypeCode = 'SS-P' "), 0)
I'm getting a mix of errors when I try to correct it. With the version above, I get:
Missing ),] or item in query expression 'Event date = #3/31/17# and USRI = 't3arf' and (EventTypeCode = 'P' or EventTypeCode = 'SS-P' '.