
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
>.