G
Guest
I have a database with a field RenterDOB for the user to put in the Date of
Birth, then I have another field for RenterAge. I want to be able to have the
RenterAge to be calculated automatically after the user puts in the
RenterDOB.
I know I want this is be AfterUpdate, how do I write the code for the one
field to populate the other? Someone gave me the following code to try, but I
am having a brain cramp with how to get one field to populate the other.
Age = DateDiff("yyyy", [DOB], Now()) + _
Int(Format(Now(), "mmdd") < Format([DOB], "mmdd"))
Suggestions, thoughts and code are appreciated! m.
Birth, then I have another field for RenterAge. I want to be able to have the
RenterAge to be calculated automatically after the user puts in the
RenterDOB.
I know I want this is be AfterUpdate, how do I write the code for the one
field to populate the other? Someone gave me the following code to try, but I
am having a brain cramp with how to get one field to populate the other.
Age = DateDiff("yyyy", [DOB], Now()) + _
Int(Format(Now(), "mmdd") < Format([DOB], "mmdd"))
Suggestions, thoughts and code are appreciated! m.