S
Sandra
I am trying to create an IIf Statement to show if a date is OK or Overdue.
My fields are "TargetDateOfPDA" and "ActualDateOfPDA". I want to create a new
field (Overdue)within a query which shows OK or OVERDUE. If a target date
has been entered and the Actual date has also been entered the Overdue field
should always show OK, but if the Target Date has been entered and the date
has passed the current date and no date has been filled in on the Actual Date
field then I want it to show "OVERDUE"
The statement which I have been using is as follows:
Overdue:IIf(IsNull([ActualDateOfPDA],
([TargetDateOfPDA]<=Now(),"OK","OVERDUE")
This does not work. Can anyone help?
My fields are "TargetDateOfPDA" and "ActualDateOfPDA". I want to create a new
field (Overdue)within a query which shows OK or OVERDUE. If a target date
has been entered and the Actual date has also been entered the Overdue field
should always show OK, but if the Target Date has been entered and the date
has passed the current date and no date has been filled in on the Actual Date
field then I want it to show "OVERDUE"
The statement which I have been using is as follows:
Overdue:IIf(IsNull([ActualDateOfPDA],
([TargetDateOfPDA]<=Now(),"OK","OVERDUE")
This does not work. Can anyone help?