Howie Jones
Registered User.
- Local time
- Today, 12:54
- Joined
- Aug 14, 2003
- Messages
- 15
To keep users out of the menu system I'm trying to compact my database automatically on exit.
This can be coded from within Access with 'DoCmd.RunCommand acCmdCompactDatabase'. But when the code runs I get an error message saying that this can't be done from within code and that I should use the menus. The same result comes when I try to use a macro.
Notwithstanding the question of why Access allows you to build code and macros that it clearly does not support, does anyone have a method for compacting the data automatically from with Access?
This can be coded from within Access with 'DoCmd.RunCommand acCmdCompactDatabase'. But when the code runs I get an error message saying that this can't be done from within code and that I should use the menus. The same result comes when I try to use a macro.
Notwithstanding the question of why Access allows you to build code and macros that it clearly does not support, does anyone have a method for compacting the data automatically from with Access?