You can hide the ms-access interface without any code at all.
The posters here are confusing the issue of hiding the "main" background
grey window that ms-access has. That code posted will hide this main
background window, but it does NOT hide the ms-access interface, tools bars,
and all of the menu options. So, it is not 100% clear here what you are
trying to hide? That posted code is to run off the main backgroud window. It
does NOT hide the database window, or the tool bars, or design mode etc.
All of the features you need to hide the ms-access menus and features can be
accomplished with no code, and you don't even need secuirty here. So, all of
the options you need can be found in tools->startup.
I have a sample working example that hides everything..and it uses no code
at all to hide everthing. You can download the sample here:
http://www.attcanada.net/~kallal.msn/msaccess/DownLoad.htm
Grab the 3rd one from above. Try running it..and see how all of ms-access
is hidden. you can now exit..and then re-run/re-load the application,but
hold down the shift key to get inside.