I would suggestion that you take a blank brand new database.
Get all of your menus back to normal. It sounds to me that you made a real
mess of the built in tool and menu bars...
in this "test" blank database, I would select the menu customize (right
click on the menu bar).
In the customize form, I would select the "database" toolbar..and then hit
the "reset" button on the right side.
In other words...are all your applications messed up?
If the view, and customize menus are missing, then that is due things being
messed up BEFORE you launched my sample applications.
(my sample does NOT run any code to setup the menus at startup...nor does it
need to).
Function HideMenu()
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
ah....gee...why the heck are you starting to write a bunch of code because
you have things messed up?
Just take a step back here.....Get all you tool bars back to normal in a
blank database that you just made....
Then, launch my sample (with shift key). You can then go
view->toolbars...and display some extra tool bars if you wish for
development (however, I find the one main menu quite fine).
However, when you are done...you want to hide those extra tool bars...(just
go view->tool bars...and uncheck all of them -- the application does
remember these settings....so, just make sure you hide them before you
deploy the application......else they will show...even in my example).
You should only have the "main" menu bar showing. Since I specify the menu
bar in the startup..then it will replace the one that is showing..
You don't need code here at all to set this up....