Solved

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

Posted on 2013-10-24
3
1,706 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

9 Experts available now in Live!

Get 1:1 Help Now