Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access 2010 -  How would I select multiple selections from a combo box to a text field?

Posted on 2013-10-24
3
Medium Priority
?
1,743 Views
Last Modified: 2013-10-24
Afternoon,

I am working in Access 2010 and would like to add a combo box to my form, which has the capabiltiy of allowing the user to select multiple items from it.

Screenshot below is what I am trying to achieve in access. This was obtained from Google Images.

multicombobox
I want this combo box to pull values from a column I have in one of my tables.

As the user selects the values of this combo box, I want the information to then be stored in one of the forms fields (seperated by a comma) which is a text field from a column in a "different" table.

Example below once user has selected all the items necessary from the combo box,

selecteditems
Can someone please let me know how I can achieve this?

Do let me know if additional information is needed.

Kind Regards,
N
0
Comment
Question by:nobushi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 39598669
This is called a "Multivalued field"
*However* this feature is not so straightforward to implement and it is commonly mistaken for a simple One-to-may configuration.
It is also difficult to troubleshoot if problems arises.
See here for more info:
http://allenbrowne.com/Access2007.html#Mixed
(It was only ever created to interface with Sharepoint)

Then other side of the story is that the alternative interface may be just as confusing to design if you are new to database design.
Then basic concept of a Multivalues field is to create an interface for a Many-To-many relationship.
So before going any further, you must be absolutely sure this is what you need.
You also must have the tables set up in this configuration, else it will never work correctly.
Here is a basic tutorial:
http://office.blogs.webucator.com/2010/06/29/creating-a-multi-value-field-in-access-2010/
...but you can do a web search of:  Access Multivalued fields
for more info and probably a few youtube videos...
;-)

JeffCoachman
0
 
LVL 1

Author Closing Comment

by:nobushi
ID: 39598771
Thank you Jeff.

Now that I know what I am looking for (since you have provided a definition), I will research this a little more to see if this is really the way I want to go.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39598861
Yes, I have seen member here actually modifying the basic table design to do this, ...only to discover that a simple one to many was all that was needed.

But a simple example is like Students and Classes
Since one student can be in many classes AND one class can have many students.
this is a classic example of a Many-to-Many relationship.
What the Multivalued field does is make it easy for you to select the "many" classes for a student.
OR to have a class and select the "many" students.
*remember this must be the case for both tables*

To wrap up.,.
...On the other hand, the "interface" is great, however the things you need to now about to get it working smoothly is the tricky bit...

;-)

JeffCoachman
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

715 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