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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexing controls on a form

Status
Not open for further replies.

harleyhead

IS-IT--Management
Apr 19, 2006
17
0
0
US
I have several check boxes, who's label and value I want to dynamically define. Is there any way of indexing thru them, rather than to load them individually. In the VB code I'd like to be able to loop thru loading them, where I would use a subscript to indicate each occurance.
 
You could modify this code - unlike VB you can't have an array of controls

Dim ctl As Control
For Each ctl In Form_Form1.Controls
Debug.Print ctl.Name
Debug.Print ctl.ControlType
Next

Grant
 
Thanx Grant,

You read my mind thinking it may have the same control manipulation as with VB. Next release maybe?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top