Hide Menu Bar

  • Thread starter Thread starter Ross
  • Start date Start date
R

Ross

How can I use code to hide the main "Menu Bar"? I can do
this manually by "View", "ToolBars", "Customized" and
then "unCheck" the Menu Bar.

Should be simple but I am stuck.

thanks you

Ross
 
Ross said:
How can I use code to hide the main "Menu Bar"? I can do
this manually by "View", "ToolBars", "Customized" and
then "unCheck" the Menu Bar.


DoCmd.ShowToolbar "Menu Bar", acToolbarNo

You may want to provide a backdoor that reenables the menu
bar when you;re debugging.
 
Marshall said:
Ross wrote:





DoCmd.ShowToolbar "Menu Bar", acToolbarNo

You may want to provide a backdoor that reenables the menu
bar when you;re debugging.
Doesn't Ctrl-F11 take care of that?
 
Marshall said:
Not in A97. Have they added something new since?

No, I'm 97-ish. I confused this with a custom menu bar.
The backdoor could be Ctrl-G 'docmd.showtoolbar "Menu Bar",
acToolbarYes' <G>
 
Back
Top