Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / June 2006

Tip: Looking for answers? Try searching our database.

Making munu-items not accessible.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan - 02 Jun 2006 08:26 GMT
Hello,

In my database i have an own-made menubar with a lot of menu items.  
Depending on the user i wish to lock or unlock different items so that the
user can't use them.

At this moment i check the user AFTER he/she clicks on the menu.

(Something like in WORD,  copy or paste isn't accessible if there is no text
selected)

--
Stefan
Marshall Barton - 02 Jun 2006 21:47 GMT
>In my database i have an own-made menubar with a lot of menu items.  
>Depending on the user i wish to lock or unlock different items so that the
>user can't use them.

You need to traverse the CommandBar's Controls collection
(see Help).

Maybe something like:

CommandBars("yourbar").Controls("somecontrol").Enabled=False

Or, if you would prefer to make them invisible:

CommandBars("yourbar").Controls("somecontrol").Visible=False

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.