A
azzie_B
Guest
Hi Guys this should be a relatively easy one for you, I have a form in which I have a Date of Birth Field and have used the following in the Control Source of an unbound textbox:
= DateDiff("yyyy",[DOB],Date())+(Date()<DateSerial(Year(Date()),Month([DOB]),Day([DOB])))
to calculate the age automatically,
It works fine and everything but when I check the table the DOB has been added but the age field is empty.
Any ideas

= DateDiff("yyyy",[DOB],Date())+(Date()<DateSerial(Year(Date()),Month([DOB]),Day([DOB])))
to calculate the age automatically,
It works fine and everything but when I check the table the DOB has been added but the age field is empty.
Any ideas