autoexec compacting issue

CarlM1975

Registered User.
Local time
Today, 14:30
Joined
Oct 29, 2008
Messages
24
Hi all

I have a database that has an autoexec macro, at the end of the macro some code runs that compacts the database. All works fine apart from once the compact has finished and the db opens up again the autoexec is once again invoked and it gets stuck in a loop.

Is there anyway of stopping the autoexec running again once compacted, or getting the db to immediately shut down on completion of the compact.

Many thanks

Carl.
 
Just go into the options of the database and check the "compact on close" option.

Then just close the DB from your Autoexec macro.
 
It's not advisable to compact via a macro, just do what mailman said :D
 

Users who are viewing this thread

Back
Top Bottom