I am new at Access. We are using Access 2013. Our database contains client information including DOB. We are required to report various numbers as related to specific "groups". One of them is "Elderly" and that group is defined as anyone over the age of 60. The following expression was created within a query that also reports the number of Youth, Female, etc. (I did not write the expression):
Elderly: IIf([ClientDOB] Is Null,0,IIf((DateDiff("yyyy",[ClientDOB],Date())>60),1,0))
The problem is that it is not calculating to the birthdate. So that if someone has a birthdate of 5/25/1955, they turned 60 yesterday, but it does not count them as "Elderly". It doesn't appear to me that it will count them until the end of the year.
I am having the same issue with the "Youth" expression, which is supposed to define anyone under 18:
Youth: IIf([ClientDOB] Is Null,0,IIf((DateDiff("yyyy",[ClientDOB],Date())<18),1,0))
Any suggestions for this newbie?
Thanks!