
Access File (mdb) Compress
Hi,
You can compact an Access DB from code,
Check out the CompactDatabase method of the DBEngine object.
The VBA would look something like:
DBEngine.CompactDatabase "MyDatabase.MDB", "MyTarget.MDB", dbLangGeneral
This would make a compacted copy of MyDatabase.MDB as MyTarget.MDB. You could
then KILL the original and rename MyTarget with the NAME command.
Quote:
> Does someone know of any utility (preferably free) to compress an Access
> Data file (mdb) from CODE (VBA)? I need to compress my Archive Database
> from Code and Unarchive whenever I need to import a Table or other Component
> from the Archive Database.
> Thanks in advance for the help!
> Deep