Afrosheen via AccessMonster.com said:
Thanks for reading this post.
I have a custom menu bar with File, Print, Print Preview, and Exit.
What I want to do is hide the menu bar when displaying Forms and display
the
menu bar when I view the Reports
The menu bar is called myMenu.
Is there a way of doing this?
The easy way without really any coding is to make a menu bar for the
application startup (that has the options you need for all forms).
You can also if you wish perhaps specify a menu bar for all forms, but the
above should do the trick anyway (and save you having to set the menu bar
for each form).
Then, for all reports, specify your report menu bar you have now.
The above is really about the best approach. Since if you try and use code
all over the place, you have code in forms, reports etc. that try to figure
out when to display the correct menu bar. If report is open and then it
minimized, then you need some code to run to hide/display etc. This becomes
VERY messy very fast.
So, just specify a menu bar in the application startup that will be used for
all forms,
and then in the forms "other" tab of the property sheet you can specify
the menu bar for your reports.
one more tip:
Make sure you simply right click and hide all of the toolbars in ms-access.
Then, the setting for the application menu bar will override the built in
menu bar (but, stray additional menu bars and tools displayed at development
time WILL REMAIN displayed when you deploy...so, make sure you un-check them
all except for the main access menu bar). Of course during development..you
ALWAYS hold down the shift key during startup to enable the built-in access
menu bar to allow you to develop your application.