'Greying out' cusome menu items

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
 
G

Graham Mandeno

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top