The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMSWhen you create a new menu bar in Visual Basic for Applications code, or when you set the Visible property of an existing menu bar to True, the current menu bar is no longer visible. However, if you create a new menu bar or view an existing menu bar by clicking the View menu, pointing to Toolbars, and then clicking Customize, both the current menu bar and the new one remain visible. RESOLUTIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspYou can set the Visible property of any existing menu bar in code to make it visible, but this method only allows you to display one menu bar at a time. When you set the Visible property of any menu bar to True, Microsoft Access automatically sets the Visible property of all other menu bars to False. For example, assume your database contains two menu bars: MenuBar1 and MenuBar2. If MenuBar1 is displayed on your screen, the following line of code automatically sets the Visible property of MenuBar1 to False:
If MenuBar2 is displayed on your screen, the following line of code
automatically sets the Visible property of MenuBar2 to False:
In order to display more than one menu bar at a time, you must create your
new menu bar or view an existing one through the user interface as follows:
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information about menu bars, click Microsoft Access Help on the
Help menu, type Read about toolbars, menu bars, and shortcut menus in the Office Assistant or
the Answer Wizard, and then click Search to view the topic. Q209974 ACC2000: How to Create Command Bars by Using Visual Basic Code Additional query words: Cmdbar menubar commandbar display show hide invisible disappear appear
Keywords : kbui PgmObj |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |