Results 1 to 8 of 8
  1. #1
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65

    Looking for suggestions for Multiple Selections

    Hi All,



    I have a field that could be a combination of 5 different options. They could select only one or all five and anything in between. What has been your experience with the most successful way to capture this? A checkbox for each option?

    Thanks in advance,

    Eric

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    how about a single pick list in a listbox. User dbl-clicks from the list, which runs an append query, and puts this option in a 'pick list' table.


    Items to pick FROM are in a source table,
    items the user picks are put in the TARGET tPicked table
    The query joins the tPicked table to the Data table.


    NO CODING, just a few queries.
    1 append query to add the user's pick
    1 del query to erase only 1 selected item in the list
    1 del query to erase all items in the list
    Attached Thumbnails Attached Thumbnails pick state lbls.png  

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Are you talking about selecting from 5 options in a combo box? So in one record, the field might contain "dog, cat, bird, mouse" in one record? That is ill advised so I'd deal with that by not having it. I guess this is not about a listbox?
    The answer might be as simple as 'use a combo box'. Hard to tell what you're asking.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    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
    An important question, I think, is what do you plan on doing with this data after it is selected? As Micron suggested...having multiple pieces of data in a single Control is generally considered to be poor design.

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

    All posts/responses based on Access 2003/2007

  5. #5
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Thanks for the responses... So this is for payment processing options for projects. There are 5 options. They may use one source or two, three, etc... I did not think to have this as a combo thinking they should be tracked as separate fields as yes/no using check boxes. I was just curious what in your collective experiences has worked the best from an accuracy (input) perspective. I won't be doing any heavy querying based on this. It is primarily to know if they use certain options, they need to provide different information on the form.

    Hope this clarifies.

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    There are 5 options. They may use one source or two, three, etc... I did not think to have this as a combo thinking they should be tracked as separate fields as yes/no using check boxes
    You don't put values for the same thing in fields/columns. That is committing spreadsheet. Such values go in records in the same field (perhaps PaymentType). The list values can come from a lookup table (not a lookup field) or a value list but the value list has issues so I'd stay away from that method. You can show the list values in a listbox or combo. I think you'd benefit from reading up on db normalization because you are asking about putting 'like' data in fields rather than records.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Thanks Micron. I would be happy to have all the data in one column but how would it work in one field if one project has Option 2 and Option 4 and the next project has Option 2, 4 and 5? One project can have one payment type or could have multiple (up to 5). I would understand if each project had only one option but that is not the case.

  8. #8
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    I repeat
    I think you'd benefit from reading up on db normalization because you are asking about putting 'like' data in fields rather than records.
    Do that research and post back with questions if the answer still alludes you. You are asking about a concept - there is no short answer for this IMO, and it has been covered umpteen thousand times already. If you don't like these, find ones that make sense to you.
    Normalization Parts I, II, III, IV, and V
    http://rogersaccessblog.blogspot.com...on-part-i.html
    and/or
    http://holowczak.com/database-normalization/
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Multiple Selections in a Combo Box
    By BeStout in forum Access
    Replies: 6
    Last Post: 07-09-2014, 12:44 PM
  2. Query with Where (Multiple Selections)
    By braveali in forum Access
    Replies: 3
    Last Post: 03-05-2014, 05:17 AM
  3. Multiple Selections from a List Box
    By oleBucky in forum Forms
    Replies: 4
    Last Post: 05-06-2011, 08:24 AM
  4. Multiple drop down selections
    By Tony1955 in forum Access
    Replies: 1
    Last Post: 09-05-2010, 01:46 PM
  5. Delete multiple selections
    By Evgeny in forum Programming
    Replies: 7
    Last Post: 07-20-2010, 01:14 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