Replacement for Multiselect List Box Suggestions: Access 2007

Posted on 2011-05-12
Last Modified: 2012-06-22
Hello, I have two list boxes on a form that are populated by two indexed tables (ID PK and then a field for the category).  I had these in the form as multi-select list boxes which worked out great for the form layout and data entry, but it is causing some havoc with other parts of the DB code.  My question is, what other options do I have to replace this list box function?  I would like to store the results in the same way (comma separated list), but not have the 'multi-select' list box property.  
Does anyone know a method to allow for data entry similar to the multi-select list box but without the compatability issues that crop up because of this type of listbox?

Question by:Bevos
    LVL 92

    Assisted Solution

    by:Patrick Matthews
    I presume you mean that this is a multi-valued field.

    I recommend avoiding the official multi-valued field and also avoid bundling values into a calculated.

    Rather, use a separate, related table to store the one-to-many values.  (In a multi-valuied field access is actually doing that for you behind the scenes.)

    The only time I would recommend a MVF is if you plan to integrate the db with sharepoint.
    LVL 44

    Accepted Solution

    Open the form in design view, right click - select Properties, Other tab, and set the MultiSelect property to None.  You can switch between whether you want, or do not want the multiselect feature within the same control - it is not the case of another control.
    LVL 26

    Assisted Solution

    <it is causing some havoc with other parts of the DB code.>
    <without the compatability issues that crop up>

    I suspect it is not the control that is the problem :)

    Please elaborate on the scenario at some length, and as always, a sample is a happy thing.
    An accdb with multi-valued fields if you must
    Actually, an accdb WITH them.
    And then I'll build you a sample to show you how to be rid of such evil permanently :)


    Author Closing Comment

    Thanks for giving me some insight into other choices than multi-value list boxes.
    LVL 44

    Expert Comment

    Thanks, glad to help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
    Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now