K
Kim
I keep getting "Invalid Syntax" with the following
expression. Does anyone know why? I've been staring at
this for a while with no luck.
Flag: IIf(([correct_start_time]>=#6:00:00 AM#) And
([correct_start_time]<=#5:59:59 PM#) And
([correct_end_time]>=#6:00:00 AM#) And ([correct_end_time]
<=#5:59:59 AM#),"Day",IIf((([correct_start_time]>=#6:00:00
PM#) And ([correct_start_time]<=#11:59:59 PM#)) OR
(([correct_start_time]>=#12:00:00 AM#) And
([correct_start_time]<=#5:59:59 AM#) And (([End_Date]=
[Start_Date]+1) OR[End_Date]=[Start_Date])),"Night",IIf
(([Start_Date]=[End_Date]),"Split,"Other")))
expression. Does anyone know why? I've been staring at
this for a while with no luck.
Flag: IIf(([correct_start_time]>=#6:00:00 AM#) And
([correct_start_time]<=#5:59:59 PM#) And
([correct_end_time]>=#6:00:00 AM#) And ([correct_end_time]
<=#5:59:59 AM#),"Day",IIf((([correct_start_time]>=#6:00:00
PM#) And ([correct_start_time]<=#11:59:59 PM#)) OR
(([correct_start_time]>=#12:00:00 AM#) And
([correct_start_time]<=#5:59:59 AM#) And (([End_Date]=
[Start_Date]+1) OR[End_Date]=[Start_Date])),"Night",IIf
(([Start_Date]=[End_Date]),"Split,"Other")))