hi.
what i am trying to do is populate a form with textboxes that hold data from a recordset. each record (yielding one field) is put into a textbox array.
i have the first, txtBox(0), on the form in Des.Time, then as the user selects the query options, the form populates with the textbox array according to the recordset results.
Loading the next consecutive controls in the txtBox() array is not giving me any problems at all. however when the user selects another query result, i try to Unload the textboxes so i can reload them according to the new recordset count. This unloading is giving me the error. I am unloading backwards (Ubound to 1), keeping the txtBox(0) still on the form.
The error i get is: "Cannot unload in this context."
i don't know what the context is about, so i'm clueless.
any suggestions would be much appreciated.
thanks.
mjneablis
ps. i realize that a grid of any kind would solve my problems, but unfortunately i must design the form in this manner.
what i am trying to do is populate a form with textboxes that hold data from a recordset. each record (yielding one field) is put into a textbox array.
i have the first, txtBox(0), on the form in Des.Time, then as the user selects the query options, the form populates with the textbox array according to the recordset results.
Loading the next consecutive controls in the txtBox() array is not giving me any problems at all. however when the user selects another query result, i try to Unload the textboxes so i can reload them according to the new recordset count. This unloading is giving me the error. I am unloading backwards (Ubound to 1), keeping the txtBox(0) still on the form.
The error i get is: "Cannot unload in this context."
i don't know what the context is about, so i'm clueless.
any suggestions would be much appreciated.
thanks.
mjneablis
ps. i realize that a grid of any kind would solve my problems, but unfortunately i must design the form in this manner.