Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling the Compacting and Repairing Of Access2002 database

Status
Not open for further replies.

jairiana

Technical User
Oct 23, 2002
29
US
Does anyone know the string you need to set up a scheduled Compact and Repairing of an Access Database? Need to schedule this at night when everyone is off the network.
 
I would use Windows task scheduler to do this. Goto Start|Programs|Accessories|SystemTools
 
I have gotten that far and got it to open the DB but don't I need a string to tell it to actually perform the Compact & Repair?
 
I have gotten that far and got it to open the DB but don't I need a string to tell it to actually perform the Compact & Repair?
 
Use the Startup Command Line Option /Compact (see on-line help). Something like this:

"path\msaccess.exe" "path\yourdatabase" /Compact
 
Jairana - as a more intuitive alternative to Widnows task scheduler, try the freeware Handy Access Launcher (HAL) utility ( or
HAL lets you schedule compacts, repairs, macro runs, and so, plus it uses fewer system resources that Windows task scheduler, plus it masks database password info.

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top