Currently, my query has 2 calculated query fields, where one is based upon the other (and I remember vaguely that this doesn't work, but can't remember the solution)
WHMIS Next Renew: IIf([WHMIS Completed] Is Null,"",IIf([WHMIS Term]=0,"",DateAdd(" yyyy",[WHMIS Term],[WHMIS Completed])))
WHMIS Status: IIf([WHMIS Next Renew]="","Require d", IIf([WHMIS Next Renew]<Date(),"Expire d","Current" ))
WHMIS Next renew does exactly what I need it to do, but the WHMIS Status does not... it returns the Required Values Fine but the Expired and Current values incorrectly.
Can someone remind me why this doesn't work and how to fix - or provide a better way of doing this?
Thanks!
WHMIS Next Renew: IIf([WHMIS Completed] Is Null,"",IIf([WHMIS Term]=0,"",DateAdd(" yyyy",[WHMIS Term],[WHMIS Completed])))
WHMIS Status: IIf([WHMIS Next Renew]="","Require d", IIf([WHMIS Next Renew]<Date(),"Expire d","Current" ))
WHMIS Next renew does exactly what I need it to do, but the WHMIS Status does not... it returns the Required Values Fine but the Expired and Current values incorrectly.
Can someone remind me why this doesn't work and how to fix - or provide a better way of doing this?
Thanks!
Comment