Menu Item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How would I create a menu icon that only is visible when a specific form is
open and has focus on it?
 
The best way is to simply build a custom menu for each form.

And, for all forms that don't need anything special, but just the defaults,
I build a "catch all" menu.

The reason why you want to do the above is that you do NOT want to write
code to turn on, or turn off the menu bar. This approach becomes a absolute
nightmare, since users simply might flip or change the form that has
focus...and then flip back to the form that needs the option disabled (or
enabled). When you have a whole bunch of forms open, coding which menu items
will display, or not is like cutting grass with your fingernails. It is
just not workable.

You most certainly can, and should hide all of the ms-access interface. The
options to complete hide and keep people out of the ms-access interface can
easily be done using the tools->start-up options. Using those options allows
you to complete hide the ms-access interface (tool bars, database window
etc). Also, using these options means you do not have to bother setting up
security.

Try downloading and running the 3rd example at my following web site that
shows a hidden ms-access interface, and NO CODE is required to do
this....but just some settings in the start-up.

Check out:

http://www.members.shaw.ca/AlbertKallal/msaccess/DownLoad.htm

Note in the above how the menu otpions CHANGE when you launch a differnt
form. Give the sample a try..and then take a look at the forms setttings.
note that NO code is needed to "swtich" which menu displays. So, if you do
this right...no code need be used....
 
Back
Top