Query Formatting Based On Date

Tor_Fey

Registered User.
Local time
Today, 04:17
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
 
Expr1: Switch(CDbl([CreatedDate])<=0.729166666666667 , "Daytime", True, "Nighttime")
 

Users who are viewing this thread

Back
Top Bottom