Wicklunda
asked on
Compact MDB from Excal VBA
I have an Excel VBA routine that updates an Access MDB. How do I perform a compact/repair after the update (from Excel using VBA) so I don't leave the file all bloaty?
easiest way is to set the option to compact on close. And simply open and close the database from Excel.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Exactly what I was looking for!
It works for me:
http://visualbasic.ittoolbox.com/documents/popular-q-and-a/compact-and-repair-access-database-with-visual-basic-2903
Good luck