FLabrecque
Registered User.
- Local time
- Today, 15:04
- Joined
- Nov 9, 2004
- Messages
- 93
I want to compact the database currently opened with VBA code. I do a lot if import, update and delete in a very amount of time. By comptacting, I hope to reduce the filesize of my DB.
In the last line of my VBA function, I added:
DBEngine.CompactDatabase "M:\ACCESS\REPORTER.MDB", "M:\ACCESS\REPORTER.NEW"
This doesn't work, since my database is already opened. Am I using my CompactDatabase method correctly? My helpfile is currently corrupted and need to be re-installed (you-hou). If that doesn't work, is there something else that will?
In the last line of my VBA function, I added:
DBEngine.CompactDatabase "M:\ACCESS\REPORTER.MDB", "M:\ACCESS\REPORTER.NEW"
This doesn't work, since my database is already opened. Am I using my CompactDatabase method correctly? My helpfile is currently corrupted and need to be re-installed (you-hou). If that doesn't work, is there something else that will?