How to calc age from birthdate?

R

Restless Me

Have Access 2000 running in XP.

This is probably very simple, but it has escaped me even though I've read
thru two text books and searched this site for similar problems.

Would like to display a members age in a report field based on today's date
and their birthdate. Can anyone help?

Thanks,

Cliff
 
L

Luong

Try this:
Age: Round((Date()-[DOB])/365)
DOB is the fieldname contains date of birth
This works in Access 2000.
Good luck!
Luong
 
D

Douglas J. Steele

The code samples Cheryl suggested at "The Access Web" are more reliable than
your suggestion, Luong.

--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)



Luong said:
Try this:
Age: Round((Date()-[DOB])/365)
DOB is the fieldname contains date of birth
This works in Access 2000.
Good luck!
Luong

-----Original Message-----
Here is some code from The Access Web:

http://www.mvps.org/access/datetime/date0001.htm

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

based on today's
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

Top