M
Martin
Hi,
I am trying to compact a database using the following code at the end of a
routine to import a table:
CommandBars("Menu Bar").Controls("Tools").Controls("Database
Utilities").Controls("Compact and repair database...").accDoDefaultAction
It states that you cant compact whilts running code or in a module.
Do you know how I can compact this using code?
Martin
I am trying to compact a database using the following code at the end of a
routine to import a table:
CommandBars("Menu Bar").Controls("Tools").Controls("Database
Utilities").Controls("Compact and repair database...").accDoDefaultAction
It states that you cant compact whilts running code or in a module.
Do you know how I can compact this using code?
Martin