Connecting Tech Pros Worldwide Help | Site Map

Hide Default Menubar

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 03:44 PM
Bill Short
Guest
 
Posts: n/a
Default Hide Default Menubar

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, 03:45 PM
Jim Allensworth
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.