-----Original Message-----
I assume you have a field in your table with the person's date of birth.
This would be a date/time field type.
You would not actually store their age in the table. Instead you can use
the function in a query or as a control source of a textbox on a form or
report.
Paste the function in a module in your database. Ensure that you don't give
the module the same name as the function.
Create a query based on your table. In an empty column of the grid, you
would put
Age([Your DOB field])
When you run the query, that column will show the person's age as of today.
--
Joan Wild
Microsoft Access MVP
Aaron said:
You are right. there is a big hole in the previous
suggestions. I looked at the website and copied the
function, but there's an error in the db now. I'm not an
expert on Access or db language commands - somewhat
familiar and it intuitively makes sense - but still
limited. Do I need to create different fields than simply
a short date field (i.e. one for day, one for month) or
introduce the new field names in the existing structure?
Aaron
.