Object naming

  • Thread starter Thread starter Chris
  • Start date Start date
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
 
Chris said:
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

Radio buttons all true? That is counter-intuitive design. Do you mean
checkboxes?

You can cycle the Controls collection of the form, check their
controlType property for, er, acCheckBox, and test their value. Like
(AIR CODE)

dim ctl as control
dim bRes as boolean
bres = true
for each ctl in me.controls
if ctl.controltype=accheckbox then
bres = bres and ctl.value
end if
next

now if bres is still True, all checkboxes were checked.
 
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
See my post to you in the formscoding group.

- 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

Back
Top