I have a list of itemAs that has an attribute of multi-list of itemBs. I want to reverse the relationship to created a list of ItemB that has an attribute of multi-list of ItemAs.
Using shirt as an example, here's the original list:
Shirt 1 (yellow, orange, blue)
Shirt 2 (green, yellow, blue)
Shirt 3 (yellow, blue)
Shirt 4 (orange)
I want to reverse the relationship as:
yellow (shirt 1, shirt 2, shirt 3)
orange (shirt 1, shirt 4)
blue (shirt 1, shirt 2, shirt 3)
green (shirt 2)
Currently I have a function to convert the original list to a many-to-many relationship (associate) table, create a crosstab query, export to Excel then manually create the reversed relationship.
I can write a function creating another table to create the reversed relationship programmatically, but wonder if there's any easier way to do it Your advices are highly appreciated.
I'm currently using both 2000 and 2007 versions, and need this function in both environments.