charliemopps
Registered User.
- Local time
- Today, 13:16
- Joined
- Feb 24, 2009
- Messages
- 40
I have an Access database that's split into front and backends.
Every once in a while the back end gets messed up and only a compact and repair will fix it.
When this happens, I notice that the lock file is still in the folder. I think what is happening is someone is shutting down their computer without exiting the database.
In any event, I need to come up with a way that users can repair the DB when I'm not here.
I want a window to pop up that says:
Open Database
Repair Database
The form would be unlinked so it wouldn't crash when the backend it screwed up.
When the repair button is clicked, I want it to kick off any logged in users and repair the BACKEND of the database (not the frontend)
I'd also like the database, when it is closed, to check if there are other users logged in, and if not, run a compact and repair. (so the last user to log out would be repairing it.)
I know this subject is talked about a lot. But I did multiple searches and could find no code examples. If anyone has information on this subject I'd appreciate it.
Every once in a while the back end gets messed up and only a compact and repair will fix it.
When this happens, I notice that the lock file is still in the folder. I think what is happening is someone is shutting down their computer without exiting the database.
In any event, I need to come up with a way that users can repair the DB when I'm not here.
I want a window to pop up that says:
Open Database
Repair Database
The form would be unlinked so it wouldn't crash when the backend it screwed up.
When the repair button is clicked, I want it to kick off any logged in users and repair the BACKEND of the database (not the frontend)
I'd also like the database, when it is closed, to check if there are other users logged in, and if not, run a compact and repair. (so the last user to log out would be repairing it.)
I know this subject is talked about a lot. But I did multiple searches and could find no code examples. If anyone has information on this subject I'd appreciate it.