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
 
Top