Date of Birth

G

Guest

I would like the formula for determining a person's age. For example: One of
my fields says: "Date of Birth" and the other field "Age." What is the
formula I should use to determine that person's age in a query? Any
assistance would be greatly appreciated. Thank you!
 
G

Guest

Yes Allen I know that I should not put an Age field in my table but in the
query. However I am confused about the formula that you referred to in your
article. Can you simply give me the formula. I am new at ACCESS. Thanks for
your help.
 
J

John Vinson

Can you simply give me the formula.

The formula I use is:

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

John W. Vinson[MVP]
 

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