Marshall Brooks
Member
- Local time
- Today, 03:40
- Joined
- Feb 28, 2023
- Messages
- 696
We have a split database with 16 tables in it.
Periodically, it experiences three types of corruption:
For the last issue, I open each table manually and search for "[#][#][#]" (without the quotes).
I'm looking for a way to use VBA to automate the process above - i.e. how would I write code that will search all fields in all tables and if it finds "###" report what table or record has the error so that I can fix it from the backup - or report no errors found or just the table with the error.
It would be a plus if the code could run unattended and generate a report that I could view later, but that isn't completely necessary.
All help appreciated!
Periodically, it experiences three types of corruption:
- Records will randomly disappear (typically a record that someone had open, but not always).
- Records will randomly be overwritten with data from a record in another table.
- Various fields in a record will be overwritten with "###" - random number of hashtags, but always at least three.
For the last issue, I open each table manually and search for "[#][#][#]" (without the quotes).
I'm looking for a way to use VBA to automate the process above - i.e. how would I write code that will search all fields in all tables and if it finds "###" report what table or record has the error so that I can fix it from the backup - or report no errors found or just the table with the error.
It would be a plus if the code could run unattended and generate a report that I could view later, but that isn't completely necessary.
All help appreciated!