Compact on Exit

B

BobV

Group:

I want to allow the user to determine whether they want to have the database
compacted upon exiting the program.

What is the VBA statement that I would use to compact the database upon
exit?

Also, what is the VBA statement so that the database will not be compacted
upon exit?

Thanks,
BobV
 
B

Bruce M. Thompson

What is the VBA statement that I would use to compact the database upon

Application.SetOption "Auto Compact", True
Also, what is the VBA statement so that the database will not be compacted
upon exit?

Application.SetOption "Auto Compact", False

:)
 
B

BobV

Bruce:

Thank you for the answer to my question. This is what I was looking for.

BobV
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top