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

Toolbar Question

Status
Not open for further replies.

zgtrman

Programmer
Dec 4, 2002
62
US
I am building a database for myself to aid me with my work...I have a toolbar on a form with buttons and I want to open another form that corrosponds with the button..all forms appear in the project explorer, however I keep getting a "Application-defined or object defined" error everytime I click the button. I notice that there is no "show" listed in the drop down menu...my code for one button is below:
Private Sub ActiveXCtl7_ButtonClick(ByVal Button As Object)

Dim FrmTemp As Form
Select Case Button.Key
Case "btnWin95"
Set FrmTemp = New Form_WIN95
FrmTemp.show vbModeless
End Select
End Sub

any help is appreciated and Thank You in advance

zgtrman

To effectively improve in the efficiency of your performance, one must be proficient in the implementation of a positive mental attitude.
 
umm never mind..I figured it ouy
DoCmd.OpenForm "WIN95".acNormal

zgtrman

To effectively improve in the efficiency of your performance, one must be proficient in the implementation of a positive mental attitude.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top