I managed through a code on this forum to do compact and rapair on a button click as follows:
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
but then the dialogue winodw pops up to ask me to opn the comacted databse or not.
I want to set that to open automatically after the compact and rapair.
reason is that I will run another code after that to backup the databse.
any way to that
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
but then the dialogue winodw pops up to ask me to opn the comacted databse or not.
I want to set that to open automatically after the compact and rapair.
reason is that I will run another code after that to backup the databse.
any way to that