brianjohnson
Technical User
I've been trying to crack this for some time. In Access 97, it's possible to comnpact the current database from the Tools, Database Utilities and Compact menus. However when trying to do the same in code, you get a request for the database to be compacterd from and to as in :-
CommandBars!tools.Controls![Database Utilities].Controls![Compact Database].Execute
Can anyone say why this is so ? I'd assumed that this code does the equivalent of clicking the menu ... am I on the wroing track ?
Regards
Brian
CommandBars!tools.Controls![Database Utilities].Controls![Compact Database].Execute
Can anyone say why this is so ? I'd assumed that this code does the equivalent of clicking the menu ... am I on the wroing track ?
Regards
Brian