J
Jason Gyetko
I'm trying to use the Compact Database with Access 2000 from
http://www.mvps.org/access/general/gen0041.htm
Public Sub CompactDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Sub
It works, but it then restarts my db after it's been initiated and my
switchboard form gets loaded again. Is there a way for it just compact and
exit, just as if I had check the 'Compact on Close' flag in the Options
menu? Is there a way to enable and disable the 'Compact on Close' option
from code? This way I just enable it, quit and I'm done. Thanks.
http://www.mvps.org/access/general/gen0041.htm
Public Sub CompactDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Sub
It works, but it then restarts my db after it's been initiated and my
switchboard form gets loaded again. Is there a way for it just compact and
exit, just as if I had check the 'Compact on Close' flag in the Options
menu? Is there a way to enable and disable the 'Compact on Close' option
from code? This way I just enable it, quit and I'm done. Thanks.