ACC: How to Hide the Database Window When MS Access StartsID: Q88160
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you start Microsoft Access, the Database window is usually visible. If
you do not want a user to be able to gain access to the Database window, you can create an AutoExec macro that hides the Database window. This article describes how to create the macro to do this.
When a Microsoft Access database is first loaded, Microsoft Access checks
for an AutoExec macro and runs it if it exists. While the following macro will
hide the Database window from the user, it can be circumvented by holding down the SHIFT key while the file opens:
Action Comment
------------------------------------------------------------------
SelectObject Select an object in the Database window so the
focus is set to the Database window.
DoMenuItem Hide the object that has the current focus.
SelectObject Action
-----------------------
Object Type: Macro
Object Name: AutoExec
In Database Window: Yes
DoMenuItem Action
-----------------
Menu Bar: Form
Menu Name: Window
Command: Hide
For more information about custom menus, search for "customizing menus" using the Microsoft Access Help menu.
Additional query words: gray grey dimmed container
Keywords : kbusage McrActn
Version : 1.0 1.1 2.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 10, 1999