C
Chris
Hi,
I am looping through a forms objects in my code and
performing an action on each object of type textbox eg
For Each ctl In f.Controls
Select Case ctl.ControlType
Case acTextBox
ctl.BackColor = 4262909
Else
'Do nothing
End If
End Select
Next
This works fine but the order in which the action occurs
is different from the tab order of the objects on the
form. I don't know what order it loops in, perhaps the
order that the controls were originally added to the form,
but what I want to be able to do is to have this occur in
the same order as the controls appear on the form. Anyone
know how to do this?
Thanks in advance
Chris
I am looping through a forms objects in my code and
performing an action on each object of type textbox eg
For Each ctl In f.Controls
Select Case ctl.ControlType
Case acTextBox
ctl.BackColor = 4262909
Else
'Do nothing
End If
End Select
Next
This works fine but the order in which the action occurs
is different from the tab order of the objects on the
form. I don't know what order it loops in, perhaps the
order that the controls were originally added to the form,
but what I want to be able to do is to have this occur in
the same order as the controls appear on the form. Anyone
know how to do this?
Thanks in advance
Chris