Query Formatting Based On Date (1 Viewer)

Tor_Fey

Registered User.
Local time
Today, 02:46
Joined
Feb 8, 2013
Messages
121
Good Morning All;

I am need help in formatting a MS Access 2016 query based on time of day, so for example:

Code:
if hour ([CreatedDate]) is in [8 to 17.30] then "Daytime" else "Nighttime"

How can i write this in the criteria of my query?

Kind Regards
Tor Fey
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 09:46
Joined
May 7, 2009
Messages
19,228
Expr1: Switch(CDbl([CreatedDate])<=0.729166666666667 , "Daytime", True, "Nighttime")
 

Users who are viewing this thread

Top Bottom