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!

disabling Access menubars

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'd like to disable/hide my Access menubars (I start Access during my application to show some reports) at runtime, but I have no idea how I should do that. I tried to change the state of AccessMenubar Tools -> Startup -> ShowDatabasewindow + ShowBuiltInMenubars (*I hope my translation is correct*) but I didn't find out how.
Is there some way doing it this way or is there another, better way (I don't want to lock these values directly in my AccessDB).
 
I found the answer by myself:

access.application.CurrentDb.Properties("startupshowdbwindow") = false
access.application.CurrentDb.Properties("allowbuiltintoolbars") = false
access.refreshtitlebar

disables Database Window & Toolbars. The same thing with "true" activates them again...


:))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top