Re: Calculate age on a specific date
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Fri, 25 Jul 2008 00:11:34 +0800
To debug the function, open the Immediate Window (Ctrl+G) and enter something like:
? Age(#1/1/1980#, #7/23/2008#)
Once you have that working, verify that your DateOfBirth field is actually a date/time field (not text.)
Then add a breakpoint to your code, and test what's going on.
The function does work.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Bagheera" <Bagheera@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EB3EC583-5572-403F-85D1-AE942565D764@xxxxxxxxxxxxxxxx
Thanks for your patience. Sadly, I still can't get this to work for me. I
replaced the " with # as instructed with the same error. I created a new
control with the calculation but get #Error in the field. Incidentally,
despite typing in the date in the formula in US format, it converts it to the
UK format.
With more than 1,000 records expected, it would have been nice to have been
able to get the age to calculate automatically - it's pretty much the crux of
a whole lot of other things for the database and crops up repeatedly but you
can't have everything.
.
- Follow-Ups:
- Re: Calculate age on a specific date
- From: Bagheera
- Re: Calculate age on a specific date
- References:
- Calculate age on a specific date
- From: Bagheera
- Re: Calculate age on a specific date
- From: Allen Browne
- Re: Calculate age on a specific date
- From: Bagheera
- Re: Calculate age on a specific date
- From: Allen Browne
- Re: Calculate age on a specific date
- From: Bagheera
- Re: Calculate age on a specific date
- From: Allen Browne
- Re: Calculate age on a specific date
- From: Bagheera
- Re: Calculate age on a specific date
- From: Allen Browne
- Re: Calculate age on a specific date
- From: Bagheera
- Calculate age on a specific date
- Prev by Date: Re: Sorting by Measurements? Access 2K
- Next by Date: Re: Top Function
- Previous by thread: Re: Calculate age on a specific date
- Next by thread: Re: Calculate age on a specific date
- Index(es):
Relevant Pages
|