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!

Running Compact and Repair from a Macro ?

Status
Not open for further replies.

ncopeland

IS-IT--Management
Mar 12, 2002
88
GB
Hi

Is it possible to run "Compact and Repair" from a macro or a bit of VB code?

KR

NC
 
Have you seen:
Compact and Repair automatically at the start of each day
faq705-4998
 
Hi

I have seen this. It is a multi user database application that I have written. I would like them to run this when everybody is off the app not just when 1 person closes the app or starts up the app.

Any help greatly received.

KR

NC
 
You can create a shortcut that will compact the database using the following format.

"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "FULL PATH\DATABASE NAME.mdb" /COMPACT

willybgw
 
Been trying to figure this one out also. I have a multi user enviroment and a database with a "Main" table of 15,000 records and two of the several other tables have 49,000 and 130,00 and need to make sure that everything is as small and running as fast as possible. we have to tun our systems off at night so i can't have it run wehn noone is here. any help on this would be great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top