Calc Age of a person

D

Douglas J. Steele

Take a look at the code in http://www.mvps.org/access/datetime/date0001.htm
at "The Access Web"

How you use that code depends on what you're trying to do. For example, if
you want to create a query that returns the person's name and age, you can
simply add

Age: DateDiff("yyyy", [Bdate], Now())+ Int( Format(now(), "mmdd") <
Format( [Bdate], "mmdd") )

into an empty cell on your query grid.
 
B

Betty

Hi~

I am working on a simple database that require me to
automatic calculate a person's age by their birthday and
as of the date of insert data.

I'm a newbie at this.. so please walk me through the
steps..

thanks~

Betty
 

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