473,507 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Nov 12 '05 #1
1 8097
On 21 Nov 2003 06:45:13 -0800, wj*@haroldbeck.com (Bill Short) wrote:
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".


DoCmd.ShowToolBar "Menu Bar", acToolbarNo
- Jim

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
8529
by: jeff | last post by:
Hello, I am coding a web application to be used on an internal Intranet. I have already coded a menubar for the application using DHTML. I want to get rid of the standard menubar in Mozilla...
2
2297
by: benny | last post by:
Hi, I am trying on redirect the to the file EnterpriseManager2.0.zip without having to show the absolute link on http://w0018/EnterpriseManager2.0.zip where the download utility cannot get that...
1
2365
by: Filips Benoit | last post by:
Dear All, How can I hide menubars for all forms? Filip
1
1568
by: mavrick101 | last post by:
Hi, I am submitting a form to new window 'target='_new'. The form is submitted fine, but How do I hide the window menubar, toolbar etc? Please help
3
4994
by: ApexData | last post by:
Access2k non runtime. In a previous post, I mentioned that I wanted to hide the Access 'Menu Bar' from view. That means that I DO NOT want to be able to see the MenuBar, even as a momentary...
1
1920
by: paul | last post by:
Hello, I am launching a webage with my url. Then in javascript I want to hide the toolbars and menubar. Is this possible after the page has launched. I know window.open() does this but because...
1
6952
by: Ronen Yacov | last post by:
Hi There, I've using IE 7.0.5730.11 on Windows XP. I want to open a pop up using javascript without showing the status bar, and to do so I use the function: function openwindow() {...
1
3825
by: maminx | last post by:
Hello.. i have this script to pop up window window.open(path,'WORKSPACE3','fullscreen=yes, directories=no, location=no, menubar=no, scrollbars=no, status=no, toolbar=no, resizable=no'); but the...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.