L
Liverlass3981
Hi, I’m hoping someone might be able to help me with a date expression. I
have a table called ‘Personal details’ with a field called ‘DateOfBirth’ and
it has a short date for its data type (ddmmyyyy). So a person’s date of birth
goes in that field. I then have a field called ‘CurrentAge’ which will
automatically give the person’s current age when I enter the date of birth
into the form, which has in it, the 2 fields described above. I am stuck on
the expression which in design view on the form, is entered in the unbound
control space. I know the expression uses the DateDiff function and Date()
for the current date but I’m not able to arrange it properly. I would like to
compute the Age by years. Can someone tell me what I would need to put? Also,
would I also use ‘short date’ as the data type for ‘Age’ in my ‘Personal
details’ table to enable the expression to calculate the age. Kind regards.
have a table called ‘Personal details’ with a field called ‘DateOfBirth’ and
it has a short date for its data type (ddmmyyyy). So a person’s date of birth
goes in that field. I then have a field called ‘CurrentAge’ which will
automatically give the person’s current age when I enter the date of birth
into the form, which has in it, the 2 fields described above. I am stuck on
the expression which in design view on the form, is entered in the unbound
control space. I know the expression uses the DateDiff function and Date()
for the current date but I’m not able to arrange it properly. I would like to
compute the Age by years. Can someone tell me what I would need to put? Also,
would I also use ‘short date’ as the data type for ‘Age’ in my ‘Personal
details’ table to enable the expression to calculate the age. Kind regards.