G
Gordon
I am trying to analyse in a report performance based on two date
fields (fldTargetDate and fldActualDate).
The control source for the particular control on the report is:
=IIf(IsNull([fldActualDate]),"n/a",IIf(DateDiff("d",[fldTargetDate],
[fldActualDate])>7,DateDiff("d",[fldTargetDate],
[fldActualDate]),"OK"))
Since the fldActualDate may at times not yet be filled in, I need to
test for a null value. but the code produces an "OK" result for every
row (regardless of whether the target is met or not or whether there
fldActualDate is null or not).
Can anyone spot the error in my formula?
Thanks
Gordon
fields (fldTargetDate and fldActualDate).
The control source for the particular control on the report is:
=IIf(IsNull([fldActualDate]),"n/a",IIf(DateDiff("d",[fldTargetDate],
[fldActualDate])>7,DateDiff("d",[fldTargetDate],
[fldActualDate]),"OK"))
Since the fldActualDate may at times not yet be filled in, I need to
test for a null value. but the code produces an "OK" result for every
row (regardless of whether the target is met or not or whether there
fldActualDate is null or not).
Can anyone spot the error in my formula?
Thanks
Gordon