I have a table with a field that lists attributes (say, colours), like this.
[Colour]
Blue
Green
Red
I have another table with a key field (“Item”) and two memo fields (“Back”, “Front”) that contain these attributes, like this.
[Item], [Back], [Front]
Item1, Red, Green
Item2, Blue, Green
Item3, Green,
Item4, , Blue; Red
The two memo fields can contain any number of attributes in any order. Multiple attributes within a field are separated by semicolons (like the “Blue; Red” in the “Front” field in the “Item4” record above).
I want to create a report that lists each of the attributes and which records contain them.
I wondered whether it could be done something like this.
(1) Make a query to generate a list that has one row for each attribute within each memo field, like this.
Item1, Back, Red
Item1, Front, Green
Item2, Back, Blue
Item2, Front, Green
Item3, Back, Green
Item4, Front, Blue
Item4, Front, Red
(2) Make another query to sort the first query by attribute/memo/item, like this.
Blue, Back, Item2
Blue, Front, Item4
Green, Back, Item3
Green, Front, Item1
Green, Front, Item2
Red, Back, Item1
Red, Front, Item4
(3) Make a report to group the second query by attribute/memo/item, like this
BLUE
Back
– Item2
Front
– Item4
GREEN
Back
– Item3
Front
– Item1
– Item2
RED
Back
– Item1
Front
– Item4
However, I don’t know whether it is possible (and if so how) to do the first query, listing the contents of the memo fields in separate rows?