Results 1 to 10 of 10
  1. #1
    kdub is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    5

    Question Select All in Combo Box List

    I apologize if this is easy to figure out. But, in Access 2010 I have a multivalue combo box list in a form that I would like to have users be able to Select All without having to click each individual check box. Similarly, I would like the option of deselecting them all, but this is not as important.

    I do ask that someone could walk me through this step by step if they could. I greatly appreciate all the help. Also, please let me know if you need more specific details.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Your post is confusing to me. By select All, what do you mean? You would refer to the Column(0) for multiple results. What does the check boxes have to do with this? Are they suspposed to be checked using the value from the combo box? Very confusing???

  3. #3
    kdub is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    5
    I apologize for the ambiguity. Like many check box lists in other environments, I would like an option to click or check something that will check every box in the list. There are around 30 items in my list, and I just want users to be able to check every box with one click.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Your saying Combo Box, are you really talking about a List Box?

  5. #5
    kdub is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    5
    I believe it is a multivalue combo box. I am attaching a picture to show it if I am incorrect with my terminology.

    Click image for larger version. 

Name:	box.png 
Views:	8 
Size:	6.8 KB 
ID:	18543

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Looks like a ListBox to me but can't tell with the Picture. If you created it you should know for sure.

  7. #7
    kdub is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    5
    I created this field initially in my table as a lookup from another table listing these nubmers. I set the lookup to allow for multiple values to be selected. In the field properties on the lookup tab in design view, I selected combo box as the display control.

    From this table I created a form by clicking on the form button on the create tab. This is why I think it is a combo box.

  8. #8
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Please review this site suggestion : http://access.mvps.org/access/lookupfields.htm

  9. #9
    kdub is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    5
    So, the impression I am getting is that I should never be using lookup fields for my tables. My next question is what I should be doing instead of using the lookup field. The lookup is simply gathering these particular ID's for use as stated previously.

    I still do not know what to do regarding my initial question. I am looking for a way to check all those boxes with a single click. It seems I am going to need some step by step help regarding all of this. All of this help is greatly appreciated.

  10. #10
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Here is the code to check all check boxes.




    Dim ctl As Control 'Select All CheckBoxes.
    For Each ctl In Me.Controls
    If ctl.ControlType = acCheckBox Then ctl.Value = True
    Next ctl


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

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2014, 05:53 AM
  2. Replies: 4
    Last Post: 07-18-2014, 10:51 AM
  3. Add a combo box to select from a list
    By Sonny101 in forum Forms
    Replies: 12
    Last Post: 06-26-2014, 10:40 AM
  4. Combo Box Won't Select Last Item in List
    By Autumn227 in forum Forms
    Replies: 9
    Last Post: 12-18-2013, 02:37 PM
  5. Turn a list into a Multi select combo box
    By seth1685 in forum Programming
    Replies: 1
    Last Post: 01-11-2012, 07:52 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