Hi Henro,
Rather than making all objects invisible, have you considered using the
Tools > Startup... options to deselect "Display Database Window" and "Use
Access Special Keys"? Disabling special keys will prevent a user from
pressing F11 to display the database window. (Side note: It will also prevent
you from stepping through VBA code with a break point set).
You can take it a step further by disabling the Shift Key, so that users
cannot bypass your startup settings. And, if really needed, you can even
implement Access Security to secure the AllowByPassKey. More details on this
here:
Securing AllowBypassKey
http://www.mvps.org/access/general/gen0040.htm
This just seems a lot easier than trying to hide all objects, which really
isn't going to fool someone who is intent on digging into your database. To
prevent changes to forms, reports and modules, you can create a .mde file.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
:
I would like to make ALL objects in my database invisible, can anyone
think of code to do this automatically?
TIA Henro