Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Check boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stringfellow_r - 25 Jul 2007 20:26 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.