Function fAge2(DOB As Date, Optional dteEnd As Variant) As Integer
're: http://www.access-programmers.co.uk/forums/showthread.php?t=116432
'coded by: raskew
'Inputs: 1) ? fAge2(#4/13/53#, #10/23/06#)
' 2) ? fAge2(#11/1/53#, #10/23/06#)
' 3) ? fage2(#4/13/53#)
'Outputs: 1) 53
' 2) 52
' 3) 56
dteEnd = IIf(IsMissing(dteEnd), Date, dteEnd)
fAge2 = DateDiff("yyyy", DOB, dteEnd) + (DateSerial(year(dteEnd), month(DOB), day(DOB)) > dteEnd)
End Function