Results 1 to 5 of 5
  1. #1
    SKraljica is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    4

    Set checkbox values

    Hello,

    i have many chexboxes at mine form. Over 300.
    In mostly of cases dont be checked, but i should set values for all checboxes to 1 if is checked and 0 if is not.
    So, i started one by one, like you can see an image.


    My question is: Is there any way to say in one place, if is any checkbox at the form ckecked value is 1, and if is not, value is 0 ?
    Attached Thumbnails Attached Thumbnails Untitled.jpg  

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    You could write some code to loop through the forms control and IF it is a Check box THEN set its value.
    Is this an unbound form. AFAIK you can't have more than, I think the figure is 256, fields in a table.
    I can't imagine why you would need a form with more than 300 controls of any type.
    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
    SKraljica is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    4
    All field is unbound.
    They make strings of four or five each.
    Individual groups are entered in the same field of the table, but as a new row.
    The table has a total of 10 fields

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Can you post a copy of the db. I've never seen access used like that.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    And a plain language explanation of your objective here would probably help, too.

    I think Bob may be right in that Access may not be really be the appropriate tool for this.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 4
    Last Post: 03-16-2017, 03:29 PM
  2. Replies: 9
    Last Post: 01-03-2013, 04:04 PM
  3. Replies: 7
    Last Post: 12-12-2012, 03:14 PM
  4. Replacing many values at once in a multiple values checkbox field.
    By ConfusedDatabaseDesigner in forum Forms
    Replies: 2
    Last Post: 07-20-2012, 08:58 AM
  5. Insert Multiple Checkbox Values to one Textbox
    By dshillington in forum Programming
    Replies: 1
    Last Post: 12-28-2011, 10:10 AM

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