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

creating .exe program to compact Access database 1

Status
Not open for further replies.

airon

Programmer
Jun 21, 2001
21
US
I would like to create a program that will automatically compact a database. If anyone could provide an example or point me in the right direction, I would appreciate it.
Thanks in advance.
 
You don't need to create a program to perform the compact. You can use the command line to do the compact. Include the following in a batch file and use the Tas Scheduler to run it. This example is for Access97.

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" C:\YourAccessDatabase.mdb /compact /CMD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top