Dear Experts,
I have create a a form from a Query. In query design view i have entered a formula to calculate Age, Passport expiry days remaining and other few similar formulas. However, when i close the and open the access, the cell in form automatically changes to #Error.
Procedures i have to follow to get it back.
1. Go to Query Design view
2. Click on the Age Field
3. Click Zoom and then click OK inside zoom
Formulas i used in my DB
AGE: DateDiff("yyyy",[DATE_OF_BIRTH],Date())-IIf(Format([DATE_OF_BIRTH],"mmdd")>Format(Date(),"mmdd"),1,0)
PPT_EXP DAYS: DateDiff("d",Date(),[PP EXPIRY])
QID_Exp_Remining_Days: DateDiff("d",Date(),[VISA/QID_EXPIRY])
HC_COUNTDOWN: DateDiff("d",Date(),[HC_EXPIRY])
Once above is done, then the #Error changes to a number as value (i.e. Example Age 35). I am not sure why this happens everytime.
Below is the screenshots for your reference.
Please suggest me if i am doing something wrong in my formula.
Kind regards,
AB