Age from DOB calculataion

I

Ilya

Hi Everybody
Is there a function for accurate calculation of Age from DOB (Date Of Birth)
Thanks in Advance, Ilya.
 
J

Jim/Chris

In a Form or report
Directly as the control source of an unbound control:
=DateDiff("yyyy",[DOB],Date())-IIf(Format([DOB],"mmdd")>Format(Date(),
"mmdd"),1,0)

In a Query
Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB],
"mmdd") > Format(Date(), "mmdd"), 1, 0)

Jim
 
G

Guest

Int(now()-[DOB])

Ray
-----Original Message-----
In a Form or report
Directly as the control source of an unbound control:
=DateDiff("yyyy",[DOB],Date())-IIf(Format([DOB],"mmdd")
Format(Date(),
"mmdd"),1,0)

In a Query
Age: DateDiff("yyyy", [DOB], Date()) - IIF(Format([DOB],
"mmdd") > Format(Date(), "mmdd"), 1, 0)

Jim
-----Original Message-----
Hi Everybody:
Is there a function for accurate calculation of Age from DOB (Date Of Birth)?
Thanks in Advance, Ilya.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top