I have a form on which I have several control arrays, labels and shapes. If I click on the enabled control array an instance of another form is displayed.
I can have several instances of this form open at any one time but only ever four visible. The maximum that can be open at any one time is 18.
The form consists of 20 labels, 4 lines, 2 shapes and a text box array consisting of 5 elements (0 to 4).
The programme works fine until a condition is reached when I try to enter data into or process a line of code with reference to, the text box array, I get the following message:-
Run-time error '340'
Control array element '0' doesn't exist?
It seems to occur when the twentieth instance of the form is active. Although this doesn't occur on every occasion and there is never twenty instances open at one time.
When I debug, all other elements (eg 1 to 4) exist but for some reason element '0' does not. My question is why?????? How can it exist for many instances and then on the 20th call it says it does not exist.