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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Design toolbar appears in runtime environment

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I am using "/runtime" in the target box of an icon to test my Access2003 system in a runtime situation. When the first form opens it displays a toolbar (design toolbar I believe) as if I was still in design mode. How do I prevent this toolbar from appearing?

Thanks
 
Hi

Below is some code I have used to control some aspects of after runtime. This is called in the autoexec macro, but the dbase has to opened twice for the process to work (first time sets, then the second acts on the new settings). One of those is the availability of toolbars.

Pls note that I also use a global constant "DB_TEST_MODE" (in the mdlUtilities module) to set these - I find it handy when moving/testing between development and production. The properties are set to tru when in development (DB_TEST_MODE = True), making it easy to restore my settings.

Hope this helps

Cheers

S



Function SetStartupProperties()

Const DB_Text As Long = 10
Const DB_Boolean As Long = 1
Const frmStartup As String = "frmSubjectsMainForm"

ChangeProperty "StartupForm", DB_Text, frmStartup
ChangeProperty "StartupShowDBWindow", DB_Boolean, False
ChangeProperty "StartupShowStatusBar", DB_Boolean, True
ChangeProperty "AllowBuiltinToolbars", DB_Boolean, mdlUtilities.DB_TEST_MODE
ChangeProperty "AllowFullMenus", DB_Boolean, mdlUtilities.DB_TEST_MODE
ChangeProperty "AllowBreakIntoCode", DB_Boolean, mdlUtilities.DB_TEST_MODE
ChangeProperty "AllowSpecialKeys", DB_Boolean, mdlUtilities.DB_TEST_MODE
ChangeProperty "AllowBypassKey", DB_Boolean, mdlUtilities.DB_TEST_MODE

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top