I used thread700-958616 as a basis for a problem I had
This is a "made-up example" because the information I am working with is too complicated to explain and this simplifies it!
On a form, one of the fields in the form can have multiple answers.
I created the tables as follows:
tbl_Items[tt]
| ItemID | ItemName | ItemOwner |
|--------+----------+-----------|
| 1 | Ball | John |
| 2 | Pen | James |
| 3 | Pencil | Andrew |
| 4 | Ruler | Richard |
[/tt]
tbl_Colours[tt]
| ColourID | Colour |
|----------+--------|
| 1 | Green |
| 2 | Red |
| 3 | White |
| 4 | Blue |
| 5 | Yellow |
| 6 | Black |
[/tt]
tbl_ItemsColours[tt]
| ItemID | ColourID |
|--------+----------|
| 1 | 2 |
| 1 | 4 |
| 2 | 6 |
| 3 | 4 |
| 4 | 1 |
[/tt]
That's all fine, each item has a colour, however the ball has 2 colours.
When I look at the results in a query or form, I get:
[tt]
| ItemID | ItemName | ItemOwner | Colour |
|--------+----------+-----------+--------|
| 1 | Ball | John | Red |
| 1 | Ball | John | Blue |
| 2 | Pen | James | Black |
| 3 | Pencil | Andrew | Blue |
| 4 | Ruler | Richard | Green |
[/tt]
How can I represent this on a form or report as:
[tt]
ItemID: 1
Item Name: Ball
Item Owner: John
Colour: Red
Blue
[/tt]
or something similar?
Is it to do with the relationships or something? or do I need to create a query type with column headers?
Many thanks to anyone who helps
Much appreicated.
Aubs
This is a "made-up example" because the information I am working with is too complicated to explain and this simplifies it!
On a form, one of the fields in the form can have multiple answers.
I created the tables as follows:
tbl_Items[tt]
| ItemID | ItemName | ItemOwner |
|--------+----------+-----------|
| 1 | Ball | John |
| 2 | Pen | James |
| 3 | Pencil | Andrew |
| 4 | Ruler | Richard |
[/tt]
tbl_Colours[tt]
| ColourID | Colour |
|----------+--------|
| 1 | Green |
| 2 | Red |
| 3 | White |
| 4 | Blue |
| 5 | Yellow |
| 6 | Black |
[/tt]
tbl_ItemsColours[tt]
| ItemID | ColourID |
|--------+----------|
| 1 | 2 |
| 1 | 4 |
| 2 | 6 |
| 3 | 4 |
| 4 | 1 |
[/tt]
That's all fine, each item has a colour, however the ball has 2 colours.
When I look at the results in a query or form, I get:
[tt]
| ItemID | ItemName | ItemOwner | Colour |
|--------+----------+-----------+--------|
| 1 | Ball | John | Red |
| 1 | Ball | John | Blue |
| 2 | Pen | James | Black |
| 3 | Pencil | Andrew | Blue |
| 4 | Ruler | Richard | Green |
[/tt]
How can I represent this on a form or report as:
[tt]
ItemID: 1
Item Name: Ball
Item Owner: John
Colour: Red
Blue
[/tt]
or something similar?
Is it to do with the relationships or something? or do I need to create a query type with column headers?
Many thanks to anyone who helps
Much appreicated.
Aubs