Connecting Tech Pros Worldwide Help | Site Map

Hide Default Menubar

  #1  
Old November 12th, 2005, 04:44 PM
Bill Short
Guest
 
Posts: n/a
Hello World,

I have a form with two custom menubars. One is for when a certain
person logs in and the other is for all other users. To get these to
only come up when they are supposed to I added this line to the OnOpen
Event:
CommandBars("Supervisor Menubar").Visible = False
CommandBars("All Others Menubar").Visible = True

Since I put in this code it brings up the correct menubar but now it
also displays the default "Menu Bar" and I can't seem to get rid of it
through code. If I try adding an additional line like I have listed
above with "Menu Bar" in it I get this error message
"Method 'Visible' of object 'CommandBar' failed".

Thanks in advance,

Bill
Newtown, PA
  #2  
Old November 12th, 2005, 04:45 PM
Jim Allensworth
Guest
 
Posts: n/a

re: Hide Default Menubar


On 21 Nov 2003 06:45:13 -0800, wjs@haroldbeck.com (Bill Short) wrote:
[color=blue]
>Hello World,
>
>I have a form with two custom menubars. One is for when a certain
>person logs in and the other is for all other users. To get these to
>only come up when they are supposed to I added this line to the OnOpen
>Event:
>CommandBars("Supervisor Menubar").Visible = False
>CommandBars("All Others Menubar").Visible = True
>
>Since I put in this code it brings up the correct menubar but now it
>also displays the default "Menu Bar" and I can't seem to get rid of it
>through code. If I try adding an additional line like I have listed
>above with "Menu Bar" in it I get this error message
>"Method 'Visible' of object 'CommandBar' failed".
>[/color]

DoCmd.ShowToolBar "Menu Bar", acToolbarNo


- Jim

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide the Menu Bar from view obstacle! ApexData@gmail.com answers 3 May 15th, 2007 10:45 PM
How can I use "menubar=no" edgarjang answers 2 November 18th, 2005 04:00 AM
Hide menubar Filips Benoit answers 1 November 13th, 2005 04:20 AM
Hide menubar in Mozilla plus URL location? jeff@dnuk.com answers 5 July 20th, 2005 04:58 PM