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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable / Enable menus

Status
Not open for further replies.

Eradic8or

Programmer
Oct 29, 2000
159
GB
Hi folks,
I have used the disablebypass and enablebypass properties to stop users getting to the design of my system but I have a problem.
I have disabled most of the functionality from the drop down menus so that users can not edit the startup sequence. The problem I have is that the disable bypass key code runs everytime the database is opened so that even I cannot get to the code because of the restricted menus.
Are there any commands I can place in the code of Reenable bypass so that when I do this, all the full menus appear again.

Hope this is clear,
Much appreciated,

eradic8or
 
This line of code is from the
StartUp Properties Example in the 97 Help Menu.
Look into AllowFullMenus Property in the Help File

ChangeProperty "AllowFullMenus", dbBoolean, True

PaulF
 
Thanks for that, it works really well except that I want the change to happen in real time so that I when I click on a button to allow full menus, it happen there and then without me having to exit the database and re-open.

Any help is much appreciated.

eradic8or.
 
then you probably need to build a custom menu (not ToolBar) with all of the options, and open that one in code using:

Forms!FormName.MenuBar = "MyCustomMenuBar"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top