Jessica said:
i have a field with date of birth and one with ages. I would like for
the age field to update automatically. For example: Jessica was born
4/7/1979(DOB field) she is know 26(age field) but next year on the
same date i would like it to automatically change 27. What can i do?
Eliminate the Age field from your table. That data is *derived* from the
date of birth and as such it should be calculated on the fly in a query,
form, or report so it is always correct. Here is what I recommend...
Delete the field [Age] from the table.
Create a new SELECT query based on your table and include all the fields
from the table. Then add one additional calculated field to the query...
Age: DateDiff("yyyy", [DateOfBirth], Date()) + (Format([DateOfBirth],"mmdd")
When you look at the results of the query it will look and act just like a
table that has an Age field except that Age will always be correct (because
it is not stored). Now you simply use this query instead of your table in
any form, report, or other query where the Age field is required