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

Compact on Exit (when flagged)

Status
Not open for further replies.

bpitche

MIS
Mar 13, 2001
43
0
0
US
I know how to make my database compact on exit, but I need to do something a little more complicated. I have a database that I use an import procedure with. The database is strictly used for reporting. I am using a flag that is set to "True" when the import is run. I want to use this flag (when = True) to force the database to compact and repair on exit. Is there any way to do this. I do not want to run the compact everytime the client exits the database as it takes too long to get out of the program.

Thanks in advance!! Brad Pitcher
The Hoover Company
bpitcher@hoover.com
 
have a look at faq705-1955.
It's aimed at Access 97, but it's easily adaptable. Instead of setting a flag, just run this code.

HTH

Ben ----------------------------------
Ben O'Hara
bo104@westyorkshire.police.uk
----------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top