'Greying out' cusome menu items

  • Thread starter Thread starter NH
  • Start date Start date
N

NH

Cross-posted to:
microsoft.public.access.commandbarsui
microsoft.public.access.forms


I use several different custom menu bars, and hide/show them depending on
the current user's security group...

What I would really like is to have one menu bar which has all items, but
just enable/disable items (grey out) depending on security group..

Is there a way of doing this (the greying out bit)?

Thank You.

Nick
 
Hi Nick

Just set the Enabled property of the commandbar controls as appropriate.
For example:
CommandBars("MyMenuBar").Controls("&Admin Functions").Enabled = False

--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand

Return mail address is invalid in a vain attempt to reduce spam.
Feedback is welcome at: (e-mail address removed)
Please post new questions or followups to newsgroup.
 
Back
Top