Compact on Exit

  • Thread starter Thread starter BobV
  • Start date Start date
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
 
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

:-)
 
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

Back
Top