How to calculate ages in MS Access

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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]
 
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
 
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

Similar Threads

Criteria for age calculation 5
Age 9
Age at Case closure 6
Age formula and length of time 1
Handling of null return in number field on form? 4
Calculating Age in Years and months in a form 2
Age Calculation 8
Age 4

Back
Top