Micron
I was surprised by your edit so decided to try it
You're too clever for your own good - that's exactly the correct solution:
Code:
TRANSFORM First(Table1.[ID]) AS FirstOfID
SELECT Table1.[MakeModel]
FROM Table1
GROUP BY Table1.[MakeModel]
PIVOT Table1.[Colour];
Result
MakeModel |
Blue |
Green |
Red |
Ferrari F40 |
LXD SLE |
DLD WDV |
|
Ford Fiesta |
|
|
ANA SNS |
Ford Transit |
|
FND FBY |
|
VW Beetle |
|
|
SDK LDD |
VW Golf |
CBC KJLS |
|
12323 |
NOTE:
Replace Table1 with your table name
You shouldn't use special characters like / in field names
I've changed it to MakeModel but it would be better to have 2 separate fields for Make & Model
Code:
TRANSFORM First(Table2.[ID]) AS FirstOfID
SELECT Table2.[Make], Table2.[Model]
FROM Table2
GROUP BY Table2.[Make], Table2.[Model]
PIVOT Table2.[Colour];
Make |
Model |
Blue |
Green |
Red |
Ferrari |
F40 |
LXD SLE |
DLD WDV |
|
Ford |
Fiesta |
|
|
ANA SNS |
Ford |
Transit |
|
FND FBY |
|
VW |
Beetle |
|
|
SDK LDD |
VW |
Golf |
CBC KJLS |
|
12323 |
Both versions included in the attached