Age from DOB calculataion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everybody
Is there a function for accurate calculation of Age from DOB (Date Of Birth)
Thanks in Advance, Ilya.
 
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
 
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.
.
.
 
Back
Top