If then statement for time

cktcPeterson

Member
Local time
Yesterday, 15:44
Joined
Mar 23, 2022
Messages
74
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
 
Maybe you meant to use IIF, instead of IFF?
 

Users who are viewing this thread

Back
Top Bottom