Problem w/ShowToolbar

jake7363

Registered User.
Local time
Today, 12:59
Joined
Mar 14, 2005
Messages
46
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
 
The form closes or the toolbar closes?
 
The form closes...sorry I didn't make that clearer...
 
Hum... The only thing I can think of is that you may have mis-spelt the tool bar name... Try to open one of the built in tool bars with the code and see what happens...
 

Users who are viewing this thread

Back
Top Bottom