I assume that the
tblStudentdetailsyou you listed is actually the
tblPersonalInfo that is shown in the attached image. At any rate,
Age is a
Field that should never be stored in a
Table. If the age is stored, after the student has a birthday, it will be incorrect! The only exception to this would be if it were a
static Field, which is to say one that once entered
will never change. An example would be '
age at which student was first enrolled' or '
age when symptoms first appeared.'
'
Age,' as in '
current age,' should
always be calculated and
displayed in an
Unbound Control on
Forms or
Reports. This type of
calculation has to take into account whether or not a person has celebrated their birthday for the current year. One formula used is
Code:
DateDiff("yyyy", [DOBField], Date()) - IIf(Format$(Date(), "mmdd") < Format$([DOBField], "mmdd"), 1, 0)
Linq
;0)>