Discussion Locked

Calculating an age in Access97

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can anyone tell me if you know how to calculate someones age from their date of birth?

I have an access table with peoples dates of birth and I would like to be able to output their age on a report.

Thanks in advance

3 replies

by peyison

Try this:

SELECT DateOfBirth, DateDiff("yyyy",[DateOfBirth],Date())-IIf(DatePart("y",Date())

This discussion is closed to new replies.