DOB to Age

danassef

New member
Local time
Today, 17:22
Joined
Dec 28, 2006
Messages
7
I'm trying to make a query that takes the DOB from my table and converts it to an age. I have tried to write an expression =datediff ("yyyy", now(), [DOB]) in the criteria section of an expression I called AGE.
 
Age: DateDiff("yyyy",[DOB],Date()) +(Format(Date(),"mmdd")<Format([DOB],"mmdd"))

In query Design View, put it in the Field: row, not the Criteria: row.

^
 
Last edited:

Users who are viewing this thread

Back
Top Bottom