brianjohnson
Registered User.
- Local time
- Today, 19:06
- Joined
- Jul 29, 2003
- Messages
- 13
Hi Folks,
I see that in Access 97 and following the opening of a database, it's possible to compact the opened database using menu options Tools/Database Utilities/Compact Database *without* needing to identify the database to be compacted and the new database name.
Could someone advise how to run this menu selection from code or a macro ? The Help notes the use of "RunCommand" but I can't see an option to compact the current database.
I guess the menu options assume it's the current db and does the the rest ? This database gets updated, renamed and copied around so I'd rather have a generic solution
TIA for any advice
Brian
I see that in Access 97 and following the opening of a database, it's possible to compact the opened database using menu options Tools/Database Utilities/Compact Database *without* needing to identify the database to be compacted and the new database name.
Could someone advise how to run this menu selection from code or a macro ? The Help notes the use of "RunCommand" but I can't see an option to compact the current database.
I guess the menu options assume it's the current db and does the the rest ? This database gets updated, renamed and copied around so I'd rather have a generic solution

TIA for any advice
Brian