Public Function fnAge(DateOfBirth As Variant, Optional TestDate As Variant = Null) As Variant
If IsNull(DateOfBirth) Then
fnAge = Null
Else
If IsNull(TestDate) Then TestDate = Date
fnAge = DateDiff("yyyy", DateOfBirth, TestDate) + (Format(DateOfBirth, "mmdd") > Format(TestDate, "mmdd"))
End If
End Function
Jim.