Solved

Compressing a Microsoft Access Database

Posted on 1998-07-23
2
134 Views
Last Modified: 2010-05-03
When using Microsoft access, you can go under the tool menu, and select Compress database whenever it needs done, but how Can I do that from Visual Basic?

0
Comment
Question by:ssteeves
2 Comments
 

Accepted Solution

by:
HenryChan earned 20 total points
Comment Utility
Very simple,

    DBEngine.CompactDatabase "FROM.MDB", "TO.MDB"

Remember that you must open it exclusively. ie. No one is using the file.

0
 
LVL 1

Author Comment

by:ssteeves
Comment Utility
Thanks very much.   That seems to do the trick.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Convert Excel Column Headers to Rows 8 81
DIR issue 7 45
using Access 8 51
Saving history changes to sub form 4 24
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now