Database Utility - Compact and Repair Database

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Is there any way to run the Compact and Repair Database
Utility from VBA?

If not VBA then VB.net?

Thanks, Mark
 
See the CompactDatabase method.

Ex.:

DBEngine.CompactDatabase "Source path and filename", "Destination path and filename"

Hope this helps,

Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com
 

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