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

ShowToolbar problem

Status
Not open for further replies.

jake7363

Technical User
May 31, 2006
56
Hi,
I have a custom toolbar that I want hidden on a form that is not connected to a database; it is serving as a "Splash Screen."

Here is the Code:

Private Sub Form_Load()
DoCmd.ShowToolbar "myToolbar", acToolbarNo
End Sub


When the form opens, it shows briefly, then closes immediately. I commented the code, and the form opens fine.

What am I missing?

Thanks in advance,
Jake
 
Move the code to OnOpen Event of the form

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Tried it - same thing occurs...
 
Try the code in this thread702-1263475


________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top