chubbychap
New Member
- Joined
- Jun 3, 2003
- Messages
- 18
Hi
I have a table for storing customer basic details and have a form based on the table, to enable the data to be input.
I have a "Date of Birth" field in my table and need to show the current Age in the "Age" field as well. I have figured out how this can be done when in a form using the following expression in the Control Source of the"Age" field properties:
=DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd"))
However, although this will show the calculated Age in the Form view, it doesn't seem to transfer it into the "Age" field of the Table.
Is there any way to get the Age to show in the table? Please note that I am not VB proficient.
Many thanks for your help.
Chubbychap
I have a table for storing customer basic details and have a form based on the table, to enable the data to be input.
I have a "Date of Birth" field in my table and need to show the current Age in the "Age" field as well. I have figured out how this can be done when in a form using the following expression in the Control Source of the"Age" field properties:
=DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd"))
However, although this will show the calculated Age in the Form view, it doesn't seem to transfer it into the "Age" field of the Table.
Is there any way to get the Age to show in the table? Please note that I am not VB proficient.
Many thanks for your help.
Chubbychap