Hiding the Menu Bar

N

NChris

I would like to hide the menu bar on click of a button. I thought I could
just use the following line of code: currentdb.MenuBar.Hide but Access
doesn't recognize MenuBar as a valid method. Is there a way to do this?
 
M

Marshall Barton

NChris said:
I would like to hide the menu bar on click of a button. I thought I could
just use the following line of code: currentdb.MenuBar.Hide but Access
doesn't recognize MenuBar as a valid method. Is there a way to do this?


Try this:

DoCmd.ShowToolbar "Menu Bar", acToolbarNo
 

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