D
Dave
Access 2003
I am trying to calculate the age of a person directly in the query.
Not sure it is possible but here is what I have tried that does not work.
---
Age: today()-[DOB]
Undefined Function
---
Age: Now()-[DOB]
returns a weird number
17938.3098726852
my guess is that it is counting days
---
So I try dividing by 365
Age: (Now()-[DOB])/365
But I can not format the field to show no decimal places.
How can I get an AGE calculation (in years only)
Thanks
Dave
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4592 (20091110) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
I am trying to calculate the age of a person directly in the query.
Not sure it is possible but here is what I have tried that does not work.
---
Age: today()-[DOB]
Undefined Function
---
Age: Now()-[DOB]
returns a weird number
17938.3098726852
my guess is that it is counting days
---
So I try dividing by 365
Age: (Now()-[DOB])/365
But I can not format the field to show no decimal places.
How can I get an AGE calculation (in years only)
Thanks
Dave
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4592 (20091110) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com