>Does anyone know of a way to create a control array. Something that I can do
> "object.mycontrol(1).name"
>or
> "object.mycontrol("id").Name"
>
>I know that a control array can do the first one but I don't thing that it could do the last one. Is there a way to code this so that the "mycontrol" could be passed an parameter and still be used as an object.
You do have a ControlCount property on the form, and a Controls collection that you can loop through:
for i = 1 to ThisForm.ControlCount
oControl = ThisForm.Controls(i)
... do something here with oControl
endfor
Mark McCasland
Midlothian, TX USA