K
Kay Davies
Hello
I am trying to calculate the age of a person based upon 2
fields and am thinking that I should use the datediff
function.
the age needs to be calculated by getting the difference
between the field "SampleReceived" and the
field "DateOfBirth" Each field is in a seperate table but
the tables are linked.
Currently I have set up a select query with all the
appropriate fields including "SampleReceived"
and "DateOfBirth". I have then added a new field which
will be the calculated field, and typed in the following:
Age
ateDiff("General Number",[SampleReceived],
[DateOfBirth])
However when I run this the output in the field is #error
Can anyone suggest where I am going wrong.
Many thanks
Kay
I am trying to calculate the age of a person based upon 2
fields and am thinking that I should use the datediff
function.
the age needs to be calculated by getting the difference
between the field "SampleReceived" and the
field "DateOfBirth" Each field is in a seperate table but
the tables are linked.
Currently I have set up a select query with all the
appropriate fields including "SampleReceived"
and "DateOfBirth". I have then added a new field which
will be the calculated field, and typed in the following:
Age

[DateOfBirth])
However when I run this the output in the field is #error
Can anyone suggest where I am going wrong.
Many thanks
Kay