C
Clint Marshall
Using Access 2003, I'm trying to use VBA in a module to update the ages of
all of my students whenever I open a database.
I have created the code to calculate the ages, but can someone share with
me the VBA code needed to open the proper table (tblStudent) and access the
BirthDate field and then put the proper age into the Age field?
I have one case where I want to cycle through all of the students (when I
first open the database) and another where I need to update just one student
(on-update when someone fills in one of the missing birthdates or adds a new
student). So, I also could use help with the code to determine the number
of records and cycle through them one at a time.
Thanks for your help!
-Clint Marshall
Access Weenie Wannabe
all of my students whenever I open a database.
I have created the code to calculate the ages, but can someone share with
me the VBA code needed to open the proper table (tblStudent) and access the
BirthDate field and then put the proper age into the Age field?
I have one case where I want to cycle through all of the students (when I
first open the database) and another where I need to update just one student
(on-update when someone fills in one of the missing birthdates or adds a new
student). So, I also could use help with the code to determine the number
of records and cycle through them one at a time.
Thanks for your help!
-Clint Marshall
Access Weenie Wannabe