Re: Age Calculation
- From: "John Spencer" <spencer@xxxxxxxxx>
- Date: Tue, 1 Nov 2005 11:31:23 -0500
Y2K (The Year 2000) was a potential major problem in the computer industry.
The problem was that many databases and other applications stored dates with
only 2 characters for the year. What that meant was that suddenly (as of
January 1, 2000) dates would be causing lots of problems when trying to
sort, compare etc.
You can use the formula (complex as it is) where you would normally use the
date of birth that you are storing as a text string.
The formula converts your date string into a DateTime type of variable.
Another method might be to use Michel Walsh's method.
The best thing you could do would be to change the field type to a DateTime
field and then find all the records with DOB greater than the current date
and fix them. This could be a bit of work, since you may have to fix other
parts of your database that relied on the field being a string field. In
the long run, you will probably be a lot better off storing the DOB in a
datetime field.
"Claudia R" <ClaudiaR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9D7B7BEC-9EE3-4D0D-952C-9A86A0910804@xxxxxxxxxxxxxxxx
> Hi, thanks for your help.
> Y"K means nothing to me? Anything I should know?
> As to fix the problem, where do I place the expression you suggest?
> The field is in a text field with a date format mask to provide
> standarisation. and the field is part of a table.
> --
> Claudia R
>
>
> "Claudia R" wrote:
>
>> I succesfully run a query calculating members age from a birthdate field.
>> The
>> funny thing is that the query won't calculate properly people who was
>> born
>> before 1930.
>> E.g. if someone was born 1929 it gives me a -24 result, which in reality
>> should be 76 years of age. Any idea of what is going on?
>> Ah just for clarification the birthdate field is the following format:
>> 07-feb-29
>> Thanks in advance.
>> --
>> Claudia R
.
- Prev by Date: Re: Complex If-command
- Next by Date: Re: make table query
- Previous by thread: Re: Complex If-command
- Next by thread: RE: Using an & in [Append To:] Field
- Index(es):
Relevant Pages
|