What you should do is specify the main menu bar in the tools startup.
You then specify what tool and menu bars you want for each form in the
"other" tab.
That way, if you hold down the shift key during startup, the you get all of
the ms-access interface and menu bars. If you run the application without
holding down the shift key, then the users see none of the ms-access
interface. You don't need code to do this.
Grab the 3rd (ms-access interface hidden) example here, and run it....
http://www.members.shaw.ca/AlbertKallal/msaccess/DownLoad.htm
Then try holding down the shift key. This approach takes no special code,
and you eliminate the problem of hiding/un-hiding the menu bars.
Is it possible to restore the toolbars within Access once you have removed
them to stop users from accessing the backend?
As mentioned, if you approach this problem correctly, then you don't have to
restore anything.
Further, once you get the hang of the above, then grab my shift key
set-unsetter here:
And, of course you ALWAYS distribute a mde to your users. using the above,
it takes no code, and you lock up the applications quite nicely, and you
don't have to implement security..or use any code to hide/un-hide menu bars
etc.