If you're asking how you can compact the currently open database in Access
97, you can't using either a macro or VBA code.
If you're asking how you can compact another database (such as compacting
the back-end database from the front-end database), you can use the
CompactDatabase method of the DBEngine object (look up "CompactDatabase
Method" in the Help file)
Without knowing what you're trying to do (I listed two possible scenarios),
it's pretty difficult for anyone to answer.
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.