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?
fredg - 25 Jul 2007 20:49 GMT
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.
> 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?
Klatuu - 25 Jul 2007 20:56 GMT
Use the Click event of a command button
With Me
.chkBox1 = True
.chkBox9 = True
.chkBox12 = True
End With

Signature
Dave Hargis, Microsoft Access MVP
> 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?