How are ya mouk2007 . . .
Be aware that the methods provided in this thread so far are inaccurate! Example:
Someone is born [blue]Dec 12, 1990[/blue]. On [blue]Jan 1, 2000[/blue] these methods will show an [blue]age of 10[/blue], when in fact (since Dec hasn't arrived yet) [purple]
the true age is 9![/purple]
To circumvent this, is a select query that includes the BirthDay, add the following custom field ([blue]
you![/blue] substitute proper names in [purple]
purple[/purple]):
Code:
[blue]Age:DateDiff("yyyy", [[purple][B][I]BirthdayFieldName[/I][/B][/purple]], Now()) + Int(Format(Now(), "mmdd") < Format([[purple][B][I]BirthdayFieldName[/I][/B][/purple]], "mmdd"))[/blue]
Run the query to see the results.
[blue]Your Thoughts? . . .[/blue]
BTW: Welcome to [blue]Tek-Tips![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Do have a look at one of the links at the bottom of my post. The links will help you [blue]ask better questions[/blue], get [blue]quick responses[/blue], [blue]better answers[/blue], and insite into [blue]etiquette[/blue] here in the forums. Again . . . Welcome to [blue]Tek-Tips![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
. . . Its [blue]worthy[/blue] reading!
See Ya! . . . . . .
Be sure to see thread181-473997
Also faq181-2886