I've got 3 fields in a query: [FAE] has a 1 or 0 in it; [CertDate] contains a date if the employee is certified, otherwise it is null; [Qualified] is a calculated field that should return "1" IF [FAE] is "1" AND IF the last day of the month 12 months from [CertDate] is > the last day of current month.
This expression...
Qualified: IIf([FAE]=1 And DateSerial(Year([CertDate]),Month([CertDate])+12,0)>DateSerial(Year(Date()),Month(Date())+1,0),1,0)
...works except if [FAE] is "1" and [CertDate] is null, it returns "#Error".
Could somebody please help me out before my brain melts??
Thank you!!!
This expression...
Qualified: IIf([FAE]=1 And DateSerial(Year([CertDate]),Month([CertDate])+12,0)>DateSerial(Year(Date()),Month(Date())+1,0),1,0)
...works except if [FAE] is "1" and [CertDate] is null, it returns "#Error".
Could somebody please help me out before my brain melts??
Thank you!!!