I posted this under 'General VB Topics' also, but I thought one of you guys has probably run into this problem also. Here it is:
I've got a form that uses an array of controls (commandbuttons) called cmdOptions. Sporadically, the form will not load and it will give me an error of "Control Array Element '0' doesn't exist". The control is created at design time, so this error definitely makes no sense. The only thing I could think of is this: I load the form and then immediately access a user-defined function on it that accesses the control. If the form doesn't load quick enough, the I can see the function getting to the point where it needs the control and it not being there. Basically, I need a way around this little problem.
-chuck




Reply With Quote