Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to enable a menu in the access by vba 2

Status
Not open for further replies.

horoscope

Technical User
Dec 1, 2002
17
CN
i have created my own menu, but at beginnig of running time,i wish it can disable .if the user gives the right accountname and password ,then the menu can enable.
who know how disable and enable one menu by vba in access.
 
I think this works, i tried it in access 2002
you can also make them invisible if you want and even disable and enable menu items

Private Sub disable_Menu_custom_1()
CommandBars("custom 1").Enabled = False
End Sub

Private Sub enable_menu_custom_1()
CommandBars("custom 1").Enabled = True
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top