this is my code that's not working:
iif(Weekday([answered_time])=1 or 7, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening")
It will work if I use:
iif(Weekday([answered_time])=1, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening")
and:
iif(Weekday([answered_time])=7, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening".
Can you please help?
Thanks in advance
iif(Weekday([answered_time])=1 or 7, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening")
It will work if I use:
iif(Weekday([answered_time])=1, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening")
and:
iif(Weekday([answered_time])=7, "Weekend", IIf(TimeValue([answered_time])<"16:00","Day","Evening".
Can you please help?
Thanks in advance