Compact On Close - TechRepublic
Question
July 27, 2009 at 09:06 AM
pd_2004

Compact On Close

by pd_2004 . Updated 16 years, 11 months ago

Hello,

I am calling MS Access from a VBA script in MS Excel, executing some queries, then closing Access. The database is set up to compact on close, which is what I want it to do. My question is this, in my VBA script I then open another database. Do I need to insert some code to allow the first database to compact before opening the second? More specifically, I find situation where I would like to be sure that the script waited until the compact process was complete before proceeding with the VBA script. Any insights would be appreciated.

Thank you.

This discussion is locked

All Comments