I have two fields startTime and EndTime both are datetime format and hold the current date as well as a user defined time. ie: startTime(7/1/2003 11:34:00 AM) and endTime(7/1/2003 3:34:00 PM)
I only need these fields to get the time from not the actual date.
How can I do a between on them and just have it pull all records (regardless of date, but inbetween the two times)
this is what I have to do the hours with (but I need minutes as well)
(from my vb code)
note: Hour(Now) just pulls the current hour
"select * from tblShifts SSID WHERE " & Hour(Now) & " BETWEEN datepart(Hh, SSID.StartTime) AND datepart(Hh, SSID.EndTime) "
thanks for any help
I only need these fields to get the time from not the actual date.
How can I do a between on them and just have it pull all records (regardless of date, but inbetween the two times)
this is what I have to do the hours with (but I need minutes as well)
(from my vb code)
note: Hour(Now) just pulls the current hour
"select * from tblShifts SSID WHERE " & Hour(Now) & " BETWEEN datepart(Hh, SSID.StartTime) AND datepart(Hh, SSID.EndTime) "
thanks for any help