Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning of the Menu Bar 1

Status
Not open for further replies.

GreenFella

Programmer
Oct 23, 2001
41
CA
Is there anyway to turn the default Menu Bar off in an Access application?

More screen real estate is required for an app and I would like to be able to free some up by turning off the Menu Bar.

TIA.

GreenFella.
 
This should do the trick:

Application.CommandBars("menu bar").Visible = False
Application.CommandBars("menu bar").Enabled = False

Ed Metcalfe.
 
It's more easy for you to 4get the Coding and do this,,,
In Form Properety,,,,,Other,,,,,MenuBar
type =0

that set

Good Luck
 
Thanks for the tips guys.

When I tried the code approach it didn't like it to much. I got the error message:

Method Visible of CommandBar failed

I tried the =0 on the Menu Bar property and that worked for turning off the options on the Menu Bar. However, the space that the Menu Bar occupied is still taken up by a blank bar.

Which isn't what the end user was looking for but which will come in handy for something else that I am working on.

Thanks for your help Ed2020 and Haitham.
 
Try in On Open Event:

DoCmd.ShowToolbar "Menu Bar", acToolbarNo

If you need to get to design view, Hold Down the Shift Key while Opening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top