If then statement for time (1 Viewer)

cktcPeterson

Member
Local time
Today, 12:24
Joined
Mar 23, 2022
Messages
73
I have a field with the current time

I want to have another field that says either good morning or good afternoon based on the time.
[txtTimeAMPM] is a unbound field set to short time.

=IFF([txtTimeAMPM]<=TimeValue("12:00"),"Good morning","Good afternoon")

I am getting a #Name

Please help me.

Thanks
Cheyenne
 

theDBguy

I’m here to help
Staff member
Local time
Today, 13:24
Joined
Oct 29, 2018
Messages
21,474
Maybe you meant to use IIF, instead of IFF?
 

Users who are viewing this thread

Top Bottom