Toggle Restore Menu

R

Rob

Hi,
I have an application that someone else has written in Access 2000 and the
following line is triggered by clicking a button on a form, what I would
like to happen is that the default Menu Bar is turned ON if it's not shown
and turned OFF if it is shown. I've tried some code similar to .acToolbarNo
= Not .actoolbarYes but to no avail.

Any help most welcome. Rob

Function RestoreMenuBar()
DoCmd.ShowToolBar "Menu Bar", acToolbarYes
End Function
 

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

Similar Threads

Turn on or off Menu Bar 2
Custom MenuBar 2
Run-time error 3
MenuBar 2
Access 2007 Menu Bar 0
Hiding the Menu Bar in Access 2007 0
Problem hiding the access menu bar 2
Access 2007 toolbars 2

Top