calculating age

N

Nancy

I have found an expression that can be used in a query to
calculate a person's age based on the date of birth and
the current date. The expression is:

=DateDiff("yyyy", [Birthdate], Now())+ Int( Format(now
(), "mmdd") < Format( [Birthdate], "mmdd") )

The problem is that I need the age in years + months
because I am using it for a dataset of children whose
ages must be calculated exactly. This expression gives
only the age in years. For example, I need "1 year and 2
months."

Can someone please help me modify the expression to get
the remaining months?

Thanks.
 

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