Results 1 to 13 of 13
  1. #1
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40

    One ring (checkbox) to control them all

    I have a form which uses multiple checkboxes. I want one check box to be a "check all" (check the 12 other checkboxes whenever the "check all" becomes checked). Any ideas how I go about achieving this? Thanks in advance for your time.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Do you also want to "uncheck" the other 12 checkboxes when "check all" becomes unchecked.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40
    Yes. I think that would work best functionally.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Perhaps something like:
    Code:
    Private Sub Check1_AfterUpdate()  
      Me.Check2 = Me.ActiveControl
      Me.Check3 = Me.ActiveControl
      Me.Check4 = Me.ActiveControl
      Me.Check5 = Me.ActiveControl
    'etc
    End Sub
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Multiple checkboxes - I suspect non-normalized data structure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40
    Perfect! Much obliged!

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Quote Originally Posted by June7 View Post
    Multiple checkboxes - I suspect non-normalized data structure.
    Yes, it would not be surprising.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40
    What makes you say that? I believe the data is normalized but admittedly I am far from an expert. All entered data is stored in tables, with no redundancy. The tables are linked as they should be. There are several queries that use the data in these tables to give me additional data. I have tested and verified that the data in my records is as it should be. What is wrong with that?

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I did say 'suspect' - would need to know more about the table structure to be sure. An example of multiple checkboxes that is not normalized data - table of pets owned by people:
    OwnerID Cat Dog Bird Fish
    1 x x
    2 x x
    3 x
    4 x

    Even if these were text with species info or number with quantity of pets, would not be normalized.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40
    I see. I'm not using them like that. I'm basically using them as a control to assist in calculating an inventory query. I have to keep track of all items processed but some items processed do not pass inspection, those items are discarded and therefore not entered into inventory. There are a dozen different sublevels to each inventory item, each must pass a test to be entered into inventory, if not they are discarded, but again I must track them regardless. It's a fairly complex process/system so it requires a bit of creativity in the way I track everything. I have been testing everything as I create though to make sure data is sound. Thanks!

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Does sound like an unusual db.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If a mechanic had one Work Order to work on one car, doing a 50 point inspection, it may be OK to use 50 Yes/No fields in a single table. But, what do you do when one of the inspection points fail? Do you just tell the customer that the mechanic did not like it or do you offer some "Detail" about why?

    If there are sublevels to the status of an entity being prepared for inventory status, each sublevel may need its own table.

  13. #13
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40
    Unusual db is an understatement. I have a NDA so I can't discuss specifics but think of it less like a car inspection and more like a cherry pie, cherry extraction process. Each pie is cut into 12 pieces tracked by relative position. Each piece has x number of cherries in it. Each piece is inspected for contamination. If a piece fails inspection, those cherries are not counted into cherry inventory. But it is still important to know how many cherries there were in the first place in each piece and the pie as a whole. Kind of a kooky analogy but it was the best I could do off the top of my head.

    The checkboxes basically let me know if portions of these items can be added to the inventory query or not. So far it all tests out properly but I would definitely say this is an unusual db in both purpose and probably execution.

    I do appreciate all of the help and input, gentlemen. Thanks again!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Boston Workstation, Ring a bell for anyone?
    By redbull in forum Programming
    Replies: 2
    Last Post: 04-03-2013, 01:50 PM
  2. Replies: 12
    Last Post: 10-27-2012, 05:44 AM
  3. Checkbox in mainform to control subform
    By revned12 in forum Forms
    Replies: 3
    Last Post: 09-09-2012, 02:32 AM
  4. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  5. Checkbox control
    By honey2wood in forum Forms
    Replies: 1
    Last Post: 10-21-2011, 07:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums