StuLux
Well-known Member
- Joined
- Sep 14, 2005
- Messages
- 679
- Office Version
- 365
- Platform
- Windows
This is probably fairly basic but despite searching I can't find some simple advice on how to do the following:
I have some VBA code that runs when a form is opened at a specific record - the code updates a field on the form depending on date values in other fields. This code works fine.
What I want to do now is to run the same code but for all records in the table and I don't understand how I write the code to step through each record. I envisage running this code when the database is opened to make sure all records are always up to date, if there is a better way of doing this then please let me know.
I have some VBA code that runs when a form is opened at a specific record - the code updates a field on the form depending on date values in other fields. This code works fine.
What I want to do now is to run the same code but for all records in the table and I don't understand how I write the code to step through each record. I envisage running this code when the database is opened to make sure all records are always up to date, if there is a better way of doing this then please let me know.