calculate age from DOB then display and manipulate those values?

G

Guest

I need to calculate the age from the DOB field, and be able to display and
use those values in queries to do averages and ranges in reports. I retrieved
the expression for calculating age; ( =DateDiff ("yyyy", [Birthdate], Now(
) ) + Int( Format (now( ), "mmdd") <Format ( [Birthdate], "mmdd) ) )
*the outermost parenthesis are mine. However, that solution only seems to
work on a form. I am unable to see those values anywhere else, much less
manipulate them. Please help. I am using MS Access 2000. The database
contains approx 400 records.
 
M

Mike Painter

dave1127 said:
I need to calculate the age from the DOB field, and be able to
display and use those values in queries to do averages and ranges in
reports. I retrieved the expression for calculating age; (
=DateDiff ("yyyy", [Birthdate], Now( ) ) + Int( Format (now( ),
"mmdd") <Format ( [Birthdate], "mmdd) ) ) *the outermost
parenthesis are mine. However, that solution only seems to work on a
form. I am unable to see those values anywhere else, much less
manipulate them. Please help. I am using MS Access 2000. The database
contains approx 400 records.

Base your forms and reports on a query and use the calculated value
Age:DateDiff ("yyyy", [Birthdate], Now( ) ) + Int( Format (now( ),
"mmdd") <Format ( [Birthdate], "mmdd) )
It will appear as just another field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top