Results 1 to 9 of 9
  1. #1
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34

    Horizontal check boxes on form for multiple selection.

    Hi everybody,



    I require a solution whereby I will be able to make multiple selection of check boxes placed horizontally and the selection should get stored in the underling database.

    Attaching the screenshot for reference. Please help.

    Thanks

    Bharat
    Attached Thumbnails Attached Thumbnails Check boxes.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    What is structure of underlying database? Do you have 3 yes/no fields? If yes, why don't you bind to fields?
    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.

  3. #3
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34
    Thanks for your response. Please refer to the attached image. I want to be able to store when our customer wants to be contacted. It could be any combination of times for example he would want us to call between 10:00 am to 1:00 PM or in the evening between 05:00PM to 8:00PM. Please suggest me what kind of field I should have. I tried with combo box with multiple selection but on scrolling the records in the form multiple selection is not displayed only one top one is displayed. Plus I want the layout in horizontal way.

    Thanks once again

    Bharat

    Quote Originally Posted by June7 View Post
    What is structure of underlying database? Do you have 3 yes/no fields? If yes, why don't you bind to fields?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    If you want to store only 1 option to only 1 field and horizontal layout, then use an OptionGroup with radio buttons.
    https://www.youtube.com/watch?v=h5M-QJnc2u0
    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.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,426
    Please suggest me what kind of field I should have
    if the time periods are fixed, I would use yes/no fields and bind them to the form controls as suggested by June in post #2

    Plus I want the layout in horizontal way.
    That is fine, layout can be anything you want, but data is normally stored vertically, however in this case I believe an exception can be made since there are only 3 choices and therefore only seven possible permutations

  6. #6
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34
    Quote Originally Posted by Ajax View Post
    if the time periods are fixed, I would use yes/no fields and bind them to the form controls as suggested by June in post #2

    That is fine, layout can be anything you want, but data is normally stored vertically, however in this case I believe an exception can be made since there are only 3 choices and therefore only seven possible permutations
    so do you mean I should have three different yes/no field for the 3 time options in the table?

  7. #7
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,426
    so do you mean I should have three different yes/no field for the 3 time options in the table?
    yes - if the times don't vary

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Three fields if you want to allow multiple time options for each record. Not a strict normalized structure but might be acceptable for this situation. yes/no fields would be the common choice. However, review http://allenbrowne.com/NoYesNo.html
    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.

  9. #9
    kkbharat is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    34
    Hi,

    Sorry for late reply. Was not well all these days.

    Thanks for your support.

    Bharat

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

Similar Threads

  1. Replies: 3
    Last Post: 08-01-2017, 04:02 PM
  2. Replies: 8
    Last Post: 01-24-2017, 02:45 PM
  3. Replies: 4
    Last Post: 03-13-2016, 12:48 PM
  4. Replies: 2
    Last Post: 05-29-2014, 09:58 PM
  5. Filter Form with Multiple Check Boxes
    By Njliven in forum Forms
    Replies: 8
    Last Post: 01-09-2013, 01:50 PM

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