Solved

Automating Compact and Repair

Posted on 2013-05-31
4
368 Views
Last Modified: 2013-07-08
I have some "Back End" databases sitting on a server. They are accessed by a user population of about a dozen folks. Some of the processes - and the sheer size of the tables - is causing the .accdb files to get bloated. Right now I am doing Compact and Repair manually on the Back End tables and have set the Front End to "Compact on Close."

Is there a way to either automate the "Compact and Repair" of the back end databases to put in behind a Utilities button? Or can it be made a "Scheduled Task" in Outlook or someplace else?

Thanks.
0
Comment
Question by:Buck_Beasom
  • 2
4 Comments
 
LVL 57
ID: 39210670
<<Is there a way to either automate the "Compact and Repair" of the back end databases to put in behind a Utilities button?>>

 See my comment in your other question about compacting from the FE.

<<Or can it be made a "Scheduled Task" in Outlook or someplace else?>>

 You can call Access from Windows Task Scheduler with the /compact switch:

"C:\....\MSACCESS.EXE"  "C:\...\MyDB.MDB" /compact

Jim.
0
 
LVL 12

Expert Comment

by:pdebaets
ID: 39210690
Please see our (free) Application Starter utility: http://www.peterssoftware.com/aps.htm

With it you can compact a backend database file when your application first opens for the day, and on a schedule.

It also copies a "master" copy of the front-end to each local computer on a schedule, which accomplishes much the same as a compact and repair of the front-end.
0
 

Author Comment

by:Buck_Beasom
ID: 39213610
I'm having some trouble downloading this app. It seems to be looking for an "F:" drive. Any suggestions?
0
 
LVL 12

Accepted Solution

by:
pdebaets earned 500 total points
ID: 39213647
Open the aps2000.mdb file while holding down the shift key. See the readme.txt file for detailed instructions.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

16 Experts available now in Live!

Get 1:1 Help Now