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

Is there a way to make the default toolbar invisible on startup?

Status
Not open for further replies.

mondoray

Technical User
Jul 28, 2003
134
AU
Hi,

Is there a way of making the default toolbar invisible on startup ?

mondoray [ponder]

 
Hi mondoray'

CommandBars("menu bar").Enabled = False


CUOK
 
cuok,

Thanks for that. Where do I place the code?

mondoray [ponder]
 
Unles you want to permanently lose the toolbar you have to set the database startup properties to hide the toolbar.

When you start Access the default bar shows until the MDB loads. You can't interact with it during that time but it looks messy.

You might be able to put code like the above in a VB script and launch your app from the script, thereby getting the command in before the toolbar gets displayed. I can't remember the exact syntax but something like

dim appaccess as new("access.application")
appaccess.commandbars("menu bar").enabled=false

might do it. You then have to set it back after the MDB has loaded but before the script ends.

Ian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top