Calculate age

W

Wei

If I know the age of a person, for example 7/24/1982.
And I want to know the exact age of this person up to
today. (say today is 2/6/2004.)
What should I do?

Thanks.

Wei
 
F

fredg

If I know the age of a person, for example 7/24/1982.
And I want to know the exact age of this person up to
today. (say today is 2/6/2004.)
What should I do?

Thanks.

Wei
In a query:
Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB], "mmdd") >
Format(Date(), "mmdd"), 1, 0)

Directly as the control source of an unbound control:
=DateDiff("yyyy",[DOB],Date())-IIf(Format([DOB],"mmdd")>Format(Date(),
"mmdd"),1,0)

Change [DOB] to whatever your [Date of Birth] field is named.
 

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