N
Nick
I have a two-part question to handle our club memberships.
(1) When I am entering a new member's details into a
form, I input their Date of Birth. What I need to do is
calculate their age, to determine whether they are adult
or junior members. The value for the age at which a junior
becomes an adult is from >=[tbYear]![Age]. Adult or junior
result needs to be entered into the field called Class on
the same form. If the date is changed the result needs to
be re-calculated in the Class field.
(2) What I also need to do with the details once
entered is to set-up an automated system so that as junior
members becomes of age, which is set, as above, by >=
[tbYear]![Age], their Class field is up-dated to Adult or
up-dates if the Date of Birth or the >=[tbYear]![Age] is
changed manually. This also needs to un-check a checkbox
called Printed in the same table if there is a change in
the Class field.
I have tried using the following but with little success:
This gives me their age - Int(DateDiff("d",[Date of
Birth],Now())/365.25)
=IIf([Age] >=(=DLookUp"Age","tbYear")), "ADULT", "JUNIOR")
but no luck.
This is a big ask but I hope someone can help.
Regards
Nick
(1) When I am entering a new member's details into a
form, I input their Date of Birth. What I need to do is
calculate their age, to determine whether they are adult
or junior members. The value for the age at which a junior
becomes an adult is from >=[tbYear]![Age]. Adult or junior
result needs to be entered into the field called Class on
the same form. If the date is changed the result needs to
be re-calculated in the Class field.
(2) What I also need to do with the details once
entered is to set-up an automated system so that as junior
members becomes of age, which is set, as above, by >=
[tbYear]![Age], their Class field is up-dated to Adult or
up-dates if the Date of Birth or the >=[tbYear]![Age] is
changed manually. This also needs to un-check a checkbox
called Printed in the same table if there is a change in
the Class field.
I have tried using the following but with little success:
This gives me their age - Int(DateDiff("d",[Date of
Birth],Now())/365.25)
=IIf([Age] >=(=DLookUp"Age","tbYear")), "ADULT", "JUNIOR")
but no luck.
This is a big ask but I hope someone can help.
Regards
Nick