antifashionpimp
Registered User.
- Local time
- Today, 22:43
- Joined
- Jun 24, 2004
- Messages
- 137
Hi everybody,
I think I’m missing something here, it’s probably very simple, but haven’t found such an example in my trusty reference book or on these newsgroups.
I want to calculate the age of a person at the present moment, when you only have the YEAR of birth as info. I know that you can use something like DateDiff(“yyyy”, “10/10/2000”, Now) and this will give you the years since 10/10/2000. But I want my field name BirthYear, which is only a number e.g. 1977 to be used in a function.
Again: how can I calculate the age when I only know the birth year? A difference of one year is OK.
Thanks for your attention!
I think I’m missing something here, it’s probably very simple, but haven’t found such an example in my trusty reference book or on these newsgroups.
I want to calculate the age of a person at the present moment, when you only have the YEAR of birth as info. I know that you can use something like DateDiff(“yyyy”, “10/10/2000”, Now) and this will give you the years since 10/10/2000. But I want my field name BirthYear, which is only a number e.g. 1977 to be used in a function.
Again: how can I calculate the age when I only know the birth year? A difference of one year is OK.
Thanks for your attention!
Last edited by a moderator: