473,422 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,422 software developers and data experts.

Enable and Disable option in Toolbar or Menu to certain user.

I have a created new toolbar and inserted new menus in it.

I want to enable or disable option to those new menus created by me to certain user created by me.

How do I work on it.

Thanks & Bye

Kartik
Apr 13 '07 #1
3 2067
I want this option to worked on old toolbar or menu available also.

Thanks & Bye

Kartik
Apr 13 '07 #2
Denburt
1,356 Expert 1GB
If you want to see or hide the menu for yourself then we have to know if your database has it's own security and if that is how you want to retrieve this info.

You can check the database user like so.

If application.CurrentUser = "MyUserName"


you can check windows or a Domain log in like this:
if Environ("UserName") = "MyUserName"

For the Menubar you can simply highlight the word menubar then press F1 and it will show you some examples of how it can be displayed or hidden.
Apr 20 '07 #3
ADezii
8,834 Expert 8TB
I have a created new toolbar and inserted new menus in it.

I want to enable or disable option to those new menus created by me to certain user created by me.

How do I work on it.

Thanks & Bye

Kartik
To programmatically Enable/Disable specific Menu items, use the CommandBars Collection as in:
Expand|Select|Wrap|Line Numbers
  1. 'To disable the New Option on the File Menu
  2. CommandBars("File").Controls(1).Enabled = False
Apr 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
1
by: Ashvin Navare | last post by:
Hi, We want to disable BACK & FORWARD button of the browser so that user is forced to navigate through the menu options provided in the site. The browser used is Internet Explorer only. Please...
1
by: hortoristic | last post by:
We are using JavaScript to Enable/Disable certain fields on web pages based on business rules. A simple example is if when using an option type tag, and the two options are Yes and No. If YES...
11
by: N. Graves | last post by:
I have checked the "Alignment and Sizing" toolbar but when I want to use in on aligning several form object the toolbar buttons stay grayed out. What am I missing. Thanks! N. Graves
0
by: bala | last post by:
hi there is a custom built menu in an ms access 2000 applications (also xp application). all the command buttons or bars are going to be visible but i need to disable and able according the...
2
by: Dntc | last post by:
Hi All Is there anyway to enable/disable the toolbar buttons on the fly as like in MFC which helps centralizing this process?Let's i have a toolbar button ToolbarButtonSave which can be...
4
by: Tom | last post by:
I have a C# Web Forms application and would like to disable the Internet Explorer toolbar and menu. How can I do this?
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
2
by: Naushad | last post by:
Hi all, I am using the countinous form. I want to Enable/Disable the some fields for perticular records as per the following condition when open the form. I have written this code in "On Current...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.