Objects

C

Chris

Is there a Keyword that Identifies all of the Objects on a
Form. For Example. I want to know if all of the Radio
Buttons on a form are = True, Then, do Something?

-Chris
 
J

Jim Allensworth

Is there a Keyword that Identifies all of the Objects on a
Form. For Example. I want to know if all of the Radio
Buttons on a form are = True, Then, do Something?

-Chris
You could use the form's Controls collection. Like ...

Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acOptionButton Then
If ctl = True Then
'Do something here
End If
End If
Next


- Jim
 

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