Hide Menu Bar

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
 
M

Marshall Barton

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.
 
B

Bas Cost Budde

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?
 
B

Bas Cost Budde

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top