Age, Total months t be displayed

T

Tia

Dear,

I have a list of employees birthdate and i am trying to find out how
much is the age and total month.
I am using this formula and all i am gettng is total years.
Age: DateDiff("yyyy",[Birthdate],Date())+(Format([Birthdate],"mmdd")
Format(Date(),"mmdd"))


Please help
 
D

Douglas J. Steele

See "A More Complete DateDiff function" at
http://www.accessmvp.com/DJSteele/Diff2Dates.html

Age: Diff2Dates("ym", [Birthdate], Date())

Note, of course, that Age will now be a text field, so you won't be able to
do arithmetic on it.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Tia said:
Dear,

I have a list of employees birthdate and i am trying to find out how
much is the age and total month.
I am using this formula and all i am gettng is total years.
Age: DateDiff("yyyy",[Birthdate],Date())+(Format([Birthdate],"mmdd")
Format(Date(),"mmdd"))


Please help
 

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