Using a multivalued field

Triedtwice

New Member
Joined
Feb 17, 2014
Messages
31
Does anyone know if I can add a multivalued field to an existing table so that my query will combine into one field the many results from a 1:many relationship?

I have a table (Sites_Tab) with values of Site_1, Site_2, etc. A relationship exists with another table (Value_Integration_Tab) that has values of VI.1, VI.2, etc. Site_1 will have one or more VI associated with it. My query shows a separate row for each occurrence:

Site_1 VI.1
Site_1 VI.4
Site_1 VI.7
Site_2 VI.1
etc...

I would like to have the results of the query appear like this:

Site_1 VI.1, VI.4, VI.7
Site_2 VI.1
etc...

Is that possible using a multivalued field in one of these 2 tables? If so, how? Thank you for you replies.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I don't know but my guess is that an m-v field would behave the same anyway. It's not meant for displaying data but for handling relational data (under the hood, it is nothing more exotic than related records just as you have already).

I'm not sure what the best solution is. What you are describing is very unnatural for query languages - sort of like walking on your hands when you could be running on your feet instead. It might be possible to use a pivot, but that depends on the data. Can you give more detail and some sample data.
 
Upvote 0
Yes, that's what I was afraid of. However, your pivot table suggestion has supplied me with an adequate work-around...thanks!!!
 
Upvote 0
Great. Good luck and post back if there are more questions.
ξ
 
Upvote 0

Forum statistics

Threads
1,221,875
Messages
6,162,563
Members
451,775
Latest member
Aiden Jenner

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top