How to get age from DOB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a DOB field (eg 5/23/03) how do I get there age from this date with
code?
 
pokdbz said:
I have a DOB field (eg 5/23/03) how do I get there age from this date with
code?

In this example the DOB field is named "dtmBirthDate"...substitute your
field name.

=DateDiff("yyyy",[dtmBirthDate],Date())+(DateSerial(Year(Date()),Month([dtmBirthDate]),Day([dtmBirthDate]))>=Date())
 

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


Back
Top