Referencing all objects on a form

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.
 
D

Douglas J. Steele

No such facility exists.

You can, of course, loop through the Controls collection rather than having
to spell out each individual control.
 
T

tighe

thank you this klet me look in a direction i did not think of, sorry for
posting twice got an error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top