compacting db when exiting (closing)

B

_Bigred

Can someone tell me how I can go about the following:

I have a button that closes the database, and I would like to have the
button compact the database and close the database.

i tried to create a "compact database" macro, but it errors saying can't
compact the db because it is open.

any ideas would be greatly appreciated,
_Bigred
 

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