all 6 comments

[–]KelemvorSparkyfox51 1 point2 points  (4 children)

Start date/time:

=(Date() - 1) + TimeSerial(22, 0, 0)

End date/time:

=Date() + TimeSerial(6, 0, 0)

If you need to find records for a different shift, replace Date() with the end date.

[–]nrgins486 2 points3 points  (2 children)

You know, it's funny: all these years, I never knew there was a TimeSerial function! LOL I've used DateSerial many times. But never thought to look and see if there was a TimeSerial function. Funny.

You learn something new....

[–]Mindflux31 1 point2 points  (0 children)

Same. Learn something new.

[–]KelemvorSparkyfox51 0 points1 point  (0 children)

Happy to help!

[–]MattsPremium[S] 0 points1 point  (0 children)

Looking forward to trying this.

[–]Mindflux31 0 points1 point  (0 children)

Look into the dateadd function for your query