I am attempting to calculate the age in years. I added the field to the form after I split the database into a Server/Client format. I am using 2010.
I placed this into the Control field
txtDOB = Date of birth (bound field)
txtAge = Unbound (does not have a field in the table)
=DateDiff("y",Year([txtDOB]),Year(Date()))
Thinking this should actually be a query and have that as the control source but not sure how to write that up in sql.
I placed this into the Control field
txtDOB = Date of birth (bound field)
txtAge = Unbound (does not have a field in the table)
=DateDiff("y",Year([txtDOB]),Year(Date()))
Thinking this should actually be a query and have that as the control source but not sure how to write that up in sql.