Nested IIF Statement

Antony Cole

Registered User.
Local time
Today, 04:42
Joined
Mar 14, 2012
Messages
16
hi,

i'm trying to do a nested iif statement on a query. I have 2 dates target start and completion date, I also have a Status column. by default the status should be "Due" unless completion date is blank but has passed the target date then it should be "Overdue". If a date has been entered into completion date I want status to say "Complete". Please help
 
If you're doing this in a query field;

Status:IIf([CompletionDate] Is Not Null, "Complete", IIf([CompletionDate] Is Null And [TargetDate]<Date(), "Overdue", "Due"))
 
Thanks for your help, much appreciated!
 

Users who are viewing this thread

Back
Top Bottom