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!

compacting a database automatically

Status
Not open for further replies.

Wieczoreck

Instructor
Feb 18, 2002
4
DE
Hi everybody!

Who can help me?
I want my database to be compacted everytime when it is closed.
Somebody told me about a prog called "JetComp", but unfortunately one file (msjet40.dll) is missing. Does anyone have this file, knows a similar program or another way?
I am using Access97.

Thanx a lot!
Daniel
 
From Access 2000 help:
Code:
Microsoft Access can automatically compact a Microsoft Access database or Microsoft Access project every time you close it. 

Open the Access database or Access project that you want Microsoft Access to compact automatically.


On the Tools menu, click Options.


Click the General tab.


Select the Compact On Close check box.
 
Hello!

Your are right that there is acheckbox in Access2000, but I am using Access97. The checkbox doesn't exists in this version. Any other possibilities?

Daniel
 
You have to manually do it in Access 97, as far as I know. I have two macros that I've attached to buttons that can make the procedure quick and painless.

Code:
Macro Name:  mCDB  (Compacts the Database)

Macro Command  SendKeys
Keystrokes     %(TDC)
Wait           No

Macro Name:  mRDB

Macro Command  SendKeys  (Repairs the Database)
Keystrokes     %(TDR)
Wait           No

Like I said, you have to do this manually. I'm sure you searched through the Tek-Tips forums for information on this topic, right? There could be another way, but this, honestely, is the easiest.
Onwards,

Q-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top