Check boxes

S

stringfellow_r

I have a registration form for an upcoming National conference. I have a
great number of checkboxes and would like to have a button, box, something
that I can click and it will automatically change certain checkboxes to
"yes". I only want this to be on certain checkboxes, but I can't figure out
how to make it work. Could someone please assist?
 
F

fredg

Are the check boxes bound to a field in a table?
If so, code the Click event of a command button:

Dim strSQL as String
strSQL = "Update MyTable Set MyTable.[CheckField1] =
True,MyTable.[CheckField2] = True;"
CurrentDb.Execute strSQL, dbFailOnError

Change MyTable and CheckField to whatever the actual table and field names
are. Add additional check box field names, as needed.

If the check boxes are NOT bound to a field in a table, then:

Me![CheckBox1] = True
Me![CheckBox2] = True
etc.
 
K

Klatuu

Use the Click event of a command button

With Me
.chkBox1 = True
.chkBox9 = True
.chkBox12 = True
End With
 
Top