Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate age for year of birth

Status
Not open for further replies.

circles

Technical User
Feb 12, 2001
26
US
I am trying to develop a table that when a person enters the year they were born thier age will be automatically be put into the age field. Any help would be great.
 
Did you look up the DateDiff function in help? Terry
**************************
* General Disclaimor - Please read *
**************************
Please make sure your post is in the CORRECT forum, has a descriptive title, gives as much detail to the problem as possible, and has examples of expected results. This will enable me and others to help you faster...
 
This has worked for me in the past.

Age: DateDiff(&quot;yyyy&quot;,[DOB],Now())+Int(Format(Now(),&quot;mmdd&quot;)<Format([DOB],&quot;mmdd&quot;))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top