How to calculate ages in MS Access

G

Guest

How can I calculate current age from a date of birth - using "yearpart" etc
doesn't allow for leap years? Is there a function for this?

Many thanks for any help you can give.
 
J

John Vinson

How can I calculate current age from a date of birth - using "yearpart" etc
doesn't allow for leap years? Is there a function for this?

Many thanks for any help you can give.

Or to save you searching...<g>

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

John W. Vinson[MVP]
 
A

Andi Mayer

How can I calculate current age from a date of birth - using "yearpart" etc
doesn't allow for leap years? Is there a function for this?

Many thanks for any help you can give.

Or to save you searching...<g>

Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB], "mmdd") >
Format(Date(), "mmdd"), 1, 0)
this gives you 147 hits
 
J

John Vinson

I know, but the beta doesn't allow you to filter for group and author
or
I am to stupid?

It's Google Groups Beta that's stupid!


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