How popualate text box with one combo-box selection or more

I have a table setup like:  ID, Code, Description

Then I have a combo-box that when the user selects a record, a text box is populated with the Description from the table and the ID is stored in the form's record source.  But then we want to allow the user to select ANOTHER record in the combo box and have that record's description added to the end of the previous one.  And then have that ID field added on to the stored first ID field.  I guess then the stored value in the record source has to be text, right?

Can this even be done?

--Steve
SteveL13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
I guess then the stored value in the record source has to be text, right?
No, it can be numeric as well

Can this even be done?
Sure, use a multi select listbox and code like what can be found here, to build the entire string(s)...
http://access.mvps.org/access/forms/frm0007.htm
http://access.mvps.org/access/reports/rpt0005.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
..Not sure how (or if) you can reference another column but the first, ...so you can use dlookup to build the name string...
Something like this:
strName = strName & ", " & DLookup("CustName", "tblCustomers", "CustID=" & lstCustomers.ItemData(varItem))

Open in new window

0
PatHartmanCommented:
I guess then the stored value in the record source has to be text, right?
Yes it does. When you concatenate two IDs, you have to have a separator.  Otherwise, how would you know when one ends and the other begins?  So 123 & "," & 456 is a string - 123,456

What are you trying to accomplish?  Generally, mushing multiple pieces of data into blobs results in useless strings.
0
SteveL13Author Commented:
I decided to go with a multi select listbox.
0
Jeffrey CoachmanMIS LiasonCommented:
Glad I could help...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.