View Full Version : DateDiff


RHONDA
01-16-2002, 07:59 AM
In Access, what is the formula for caculating a person's age using a date-of-birth field?

David R
01-16-2002, 09:15 AM
=Int(DateDiff("d",[DOBField],Now())/365.25)

David R

Bluezman
01-16-2002, 09:19 AM
In one database I used this in a calculated field:

AGE: DateDiff("yyyy",([DOB]), NOW())

This should calculate their current age (in total years) as of the time you run the query.

Is this what you needed?

Bluez