How to calculate ages in MS Access

  • Thread starter 870 House, Birmingham UK
  • Start date
8

870 House, Birmingham UK

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]
 
Top