compact database from command prompt

A

alekm

Hi, I want to schedule compacting access database. How do I execute compact
and repair from command prompt?
Thanx in advance.

alek_mil
 
S

Stuart McCall

alekm said:
Hi, I want to schedule compacting access database. How do I execute
compact
and repair from command prompt?
Thanx in advance.

alek_mil

From the help file:

1.. Open the folder where Microsoft Access is installed (located by
default in C:\Program Files\Microsoft Office\Office11).
2.. Right-click the Microsoft Access program icon, and then click Create
Shortcut.
3.. Right-click the shortcut icon just created, click Properties, and then
click the Shortcut tab.
4.. Click to the right of the Microsoft Access startup command in the
Target box, and then type the desired command-line options.
For example, the following command line starts Microsoft Access and opens
the Northwind sample database for exclusive access.

"C:\Program Files\Microsoft Office\Office11\MSAccess.exe" "C:\Program
Files\Microsoft Office\Office11\Samples\Northwind.mdb" /excl

Replace the path to Northwind.mdb with the path to your mdb, and replace
/excl with /compact
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top