Solved

Automating Compact and Repair

Posted on 2013-05-31
4
370 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 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

10 Experts available now in Live!

Get 1:1 Help Now