PC Review


Reply
Thread Tools Rate Thread

compact database from command prompt

 
 
alekm
Guest
Posts: n/a
 
      24th Feb 2010
Hi, I want to schedule compacting access database. How do I execute compact
and repair from command prompt?
Thanx in advance.

alek_mil
 
Reply With Quote
 
 
 
 
Stuart McCall
Guest
Posts: n/a
 
      24th Feb 2010
"alekm" <(E-Mail Removed)> wrote in message
news:47EE233C-9FDB-456D-BF7D-(E-Mail Removed)...
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to call Compact & Repair Database command from a office VB script news.microsoft.com Microsoft Access VBA Modules 2 20th Nov 2006 02:00 PM
Need help to call Compact & Repair Database command from a office VB script news.microsoft.com Microsoft Excel Discussion 2 20th Nov 2006 02:00 PM
Need help to call Compact & Repair Database command from a office VB script news.microsoft.com Microsoft Excel Programming 2 20th Nov 2006 02:00 PM
Re: Command button to run Compact/Repair Database procedure '69 Camaro Microsoft Access 0 17th Sep 2004 06:05 PM
Command button to run Compact/Repair Database procedure =?Utf-8?B?RG9ubmE=?= Microsoft Access 0 17th Sep 2004 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:03 AM.