AOB
Registered User.
- Local time
- Today, 07:13
- Joined
- Sep 26, 2012
- Messages
- 637
Hi guys,
I've put together a function which enables me to compact & repair the backend of my database from the frontend. Basically because, once I deploy the DB, I don't want to have to perform the maintenance on it myself - I'd prefer to just have a button on a form which allows the users to do it.
The process is as follows :
Any suggestions?
Thanks
Al
I've put together a function which enables me to compact & repair the backend of my database from the frontend. Basically because, once I deploy the DB, I don't want to have to perform the maintenance on it myself - I'd prefer to just have a button on a form which allows the users to do it.
The process is as follows :
- Confirm nobody is connected to the database (apart from the person performing the C&R, obviously)
- Block any new connections to the backend while the C&R is running
- Create a copy of the backend
- Compact & repair the copy
- Disconnect the frontend from the backend (by dropping all the linked tables)
- Wait for the locking file (*.laccdb) to disappear
- Switch the existing backend with the newly C&R'd copy
- Add the linked tables back into the frontend
- Unblock new connections to the backend
Any suggestions?
Thanks
Al