This should do it:
For Each ctl In frm.Controls
If ctl.ControlType = acCheckBox Then
ctl = True
End If
Next ctl
If you have heaps of *bound* check boxes on a form, it may indicate the
table is not well designed. See:
Don't use Yes/No fields to store preferences
at:
http://allenbrowne.com/casu-23.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>I would like to be able to click a button on a form, and make all the
> controls that are check boxes TRUE (without having to know their names
[quoted text clipped - 26 lines]
> Next prp
> Next ctl
Access101 - 24 Jul 2007 17:16 GMT
Allen,
Very helpful all around - thanks for the Yes/No article too, I'll be passing
that on.
Thanks a lot
> This should do it:
>
[quoted text clipped - 40 lines]
> > Next prp
> > Next ctl