Referencing all objects on a form

  • Thread starter Thread starter tighe
  • Start date Start date
T

tighe

is it possible to take action on all objects on a form at once instead of
seperately?

my hope is to have code to this extent:

Private Sub CheckBox1_AfterUpdate()
If Me.Checkbox1 = -1 Then
Me.ALL.visible = True
End If
End Sub

With "ALL" being the reference to everything on the form. if there is code
for it I could not find it.

thank you in advance for all help past and present.
 
No such facility exists.

You can, of course, loop through the Controls collection rather than having
to spell out each individual control.
 
thank you this klet me look in a direction i did not think of, sorry for
posting twice got an error.
 
Back
Top