Solved

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

Posted on 2013-10-24
3
1,716 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
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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…

809 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