Link to home
Create AccountLog in
Avatar of Wicklunda
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?
Avatar of jordibartrina
jordibartrina

easiest way is to set the option to compact on close. And simply open and close the database from Excel.

ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Wicklunda

ASKER

Exactly what I was looking for!