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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you compact and repair as a scheduled task

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
I would like to compact and repair my databases automatically over the weekend, can i do that from a scheduled task....Access 2003. I think so...
Can I do that in a DoCmd.
 
Create a windows scheduled task with a command line like this:
"\path\to\msaccess.exe" "\path\to\database.mdb" /compact

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top