How to Compact from VBA

boblarson

Smeghead
Local time
Today, 06:07
Joined
Jan 12, 2001
Messages
32,053
How can I compact a database from a Visual Basic Module (Access 97) so that it will act just as if I had it open and ran the compact utility. In other words, I want it to compact to it's own file name.

Any help would be appreciated.

Thanks,

Bob Larson
 
Thanks,

I hadn't thought of that simple fix. But it worked great!

Bob
 

Users who are viewing this thread

Back
Top Bottom