Full Version: Hiding Database Window on Startup
UtterAccess Discussion Forums > Microsoft® Access > Access Q and A
kstoneman
How can I ensure that the database window will be hidden on startup? I know how to do it on my machine, but I'm not sure if the other machines that will run the database will be set the same way.

Kevin
aoh
Everything in Startup in the options menu is specific to the database, not the computer. You can check this by opening a different database on your own computer where it's not set to hide. You'll see the DB window. Then open the original again, and the DB window should not appear.
kstoneman
Thanks. Is this also true for hiding menus?
aoh
Never having hidden menus, I'm not sure but the rule is that if an option is within the Startup options, it's for the database. If it's anywhere else, it's set for the computer.
GlenKruger
If you uncheck the menu's in the startup window you will still be left with the File, Window and Help menu's.

If you want to hide all menu's you can do that with code.

' Disable all Menus and Toolbars


Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i

This would be called in the On Load or On Open event of the first form that opens in the database.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.