I
Iain Scott
Hello,
I am using the following query to calculate an individuals age by
comparing his/her date of birth with the date at which the person is
referred (to our hospital).
=DateDiff("yyyy",[datebirth],[referraldate])
Now, it works quite well BUT when a date of birth earlier than 1930 is
applied I get a silly and negative number.
i.e. Year 1930 gives an age of 74 - correct
Year 1929 gives an age of -25 - incorrect
I'm a bit puzzled by this and cannot work it out or correct it. The
same error occurs on the form, on queries and on reports.
Can anybody help? Thank you in advance anyone with advice.
Iain Scott
I am using the following query to calculate an individuals age by
comparing his/her date of birth with the date at which the person is
referred (to our hospital).
=DateDiff("yyyy",[datebirth],[referraldate])
Now, it works quite well BUT when a date of birth earlier than 1930 is
applied I get a silly and negative number.
i.e. Year 1930 gives an age of 74 - correct
Year 1929 gives an age of -25 - incorrect
I'm a bit puzzled by this and cannot work it out or correct it. The
same error occurs on the form, on queries and on reports.
Can anybody help? Thank you in advance anyone with advice.
Iain Scott