I'm having trouble creating a query.
I need to create a SQL query where ProductID = prodSelect (user choice) and EndTime = Null and StartTime < 3 hours from the current time.
This is what I have so far. Could someone help me figure it out?
Set rs = CurrentDb.OpenRecordset("SELECT TimeID " & _
"FROM tblLunchTime " & _
"WHERE ProductionID = prodSelect
AND EndTime = NULL
AND StartTime < (Now - 0/0/0000 3: 00: 00 AM")