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!

Help with Sub Procedures

Status
Not open for further replies.
Aug 23, 2005
43
US
I have code that has a routine running in Sub Form_Load(). In this same form I want to run a calendar module so here I am creating the instance of the class. The code compiles without error but then when I go to the actual form and tab to the date field, an error pops up and tells me that I need to create the instance of the class and gives me an example how to do it. My question is I guess...is it possible to do 2 routines in 1 sub procedure such as Form_Load()???

THanks for your help.

Madetoheal13
 
you need to dimension your object at the top of the form class, not in the sub. That will preserve it for use after you have loaded the form.

Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top