Disable one of menus in custom menu 
Author Message
 Disable one of menus in custom menu

Hallo,

I have a custom menu from my Access 2000 application, and if youser is not
authorised to see it, I need to disable the "Admin" menu on this toolbar.
How can I do this through VBA?

Thanks,

-- Pavils



Sat, 08 Jan 2005 19:01:53 GMT  
 Disable one of menus in custom menu

Here is an example from some of my code you will just have
to modify the menu names.....

Dim cbc As CommandBarControl

Set cbc = CommandBars("PollingValidationMenu").Control
("Tools").CommandBar.Controls("Allow shift bypass")

If DevUser = False Then
   cbc.Visible = False
Else
   cbc.Visible = True
End If

Quote:
>-----Original Message-----
>Hallo,

>I have a custom menu from my Access 2000 application, and
if youser is not
>authorised to see it, I need to disable the "Admin" menu
on this toolbar.
>How can I do this through VBA?

>Thanks,

>-- Pavils

>.



Sun, 09 Jan 2005 18:55:57 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need Help: Trouble adding a custom menu pick to a custom popup menu in VBA

2. Disable custom menu popup item

3. Custom menu items disabled

4. Custom Menu items disabled - new twist

5. Custom menus are in a disabled state.

6. Disabled custom menu items with VISIO 2002

7. Disabled custom menu items

8. When adding second menu item to custom menu it appears greyed out

9. Identifying Which menu item was clicked on a custom menu

10. Disable context menu or close context menu

11. Adding custom menu items to explorer menu

12. Context Menu Handlers disables standard menu items

 

 
Powered by phpBB® Forum Software