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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datediff in Access

Status
Not open for further replies.

Cheveliar

IS-IT--Management
Feb 4, 2003
15
US
I am trying to calculate age. My formula reads age: Datediff("y", [birthdate],now()) I get some long number that is not even close...Am I missing something here?
 
Hi!

Try this:

age: Datediff("yyyy", [birthdate],now())

This will not be exact since it doesn't take month or day into consideration.

hth
Jeff Bridgham
bridgham@purdue.edu
 
To calculate the difference in years, the formula should read:
Datediff("yyyy", [birthdate],now())

The single Y you are using calculated the number of the day in the year.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top