On a form containing a tabbed dialog control, I need to individualy loop through all the text boxes, check boxes and combo boxes placed on the tabbed dialog control. However, for example when trying to loop through all the text boxes in the following way I get an error;
Dim txt as TextBox
For Each txt in form1
txt.text = "some value"
Next
For some reason it seems to include each tab as a txt control and gives a type mismatch error. In addition in the above code I am looping through all the text controls on the form rather than those just placed on the tabbed dialog control. How do I just reference those contained on the tabbed dialog control?
many thanks.
Dim txt as TextBox
For Each txt in form1
txt.text = "some value"
Next
For some reason it seems to include each tab as a txt control and gives a type mismatch error. In addition in the above code I am looping through all the text controls on the form rather than those just placed on the tabbed dialog control. How do I just reference those contained on the tabbed dialog control?
many thanks.