My Code:
REPORT STATUS: IIf(DateDiff("d",Now(),[Report Status])>7,"Current",IIf(DateDiff("d",Now(),[Report Status]) Between 0 And 7,"Due",IIf(DateDiff("d",Now(),[Report Status])<0,"Overdue")))
This code works well in setting field value at "Current" if report is not due for 8 or more days, "Due" if report is due within 7 days, and "Overdue" if report is overdue.
What I want to do is use a checkbox on the overlying form to set the field value to "Current" when it is checked. The check box would indicate the report has been turned in. I've tried to incorporate an "IIF" or "OR" Function (i.e. IIF([Report Status])="-1", "Current" but I keep getting "too many arguments" or some other error. Any help would be appreciated.
REPORT STATUS: IIf(DateDiff("d",Now(),[Report Status])>7,"Current",IIf(DateDiff("d",Now(),[Report Status]) Between 0 And 7,"Due",IIf(DateDiff("d",Now(),[Report Status])<0,"Overdue")))
This code works well in setting field value at "Current" if report is not due for 8 or more days, "Due" if report is due within 7 days, and "Overdue" if report is overdue.
What I want to do is use a checkbox on the overlying form to set the field value to "Current" when it is checked. The check box would indicate the report has been turned in. I've tried to incorporate an "IIF" or "OR" Function (i.e. IIF([Report Status])="-1", "Current" but I keep getting "too many arguments" or some other error. Any help would be appreciated.