DAZarlengo
New Member
- Joined
- Oct 18, 2003
- Messages
- 11
I have a user table that has separate fields for "Date of Birth" and "Age". When filling out the customer data form, the user would like the age to be calculated automatically in real-time when the Date of Birth is entered. (Not later, such as through an update query).
How can this be done? I'm guessing that an "on focus" event in the age box could do it. That way, when the user tabs from Date of Birth into the age box, code could be executed. But what code? And how to put that age result into the age field in the customer table.
I'd appreciate any solution, and know how to use VBA code. Thanks!
How can this be done? I'm guessing that an "on focus" event in the age box could do it. That way, when the user tabs from Date of Birth into the age box, code could be executed. But what code? And how to put that age result into the age field in the customer table.
I'd appreciate any solution, and know how to use VBA code. Thanks!