I believe that if, as you said, you want this to work for any date, you'd modify it this way:<br><br>Function Age(BDate As Date, ChosenDate) As Integer<br> Age = DateDiff("yyyy", BDate, ChosenDate) + _<br> (ChosenDate < DateSerial (Year(ChosenDate), Month(BDate), Day(BDate)))<br>End Function
Thank for catcing that Elizabeth, I think I was brain dead when I read the original post.<br><br>Thanks<br>RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.