Greetings fellow Access-ers. I need to count distinct combinations, and am stuck on how to do it in a query.
Code: Blue
ID Type
1 A
1 B
2 A
3 A
Code: Green
ID Type
5 A
5 B
5 C
6 A
With the sample data above, I would want to end up with
DISTINCT TYPE COUNTS BY CODE AND ID:
Code: Blue ID: 1 DISTINCT TYPE COUNT: 2
Code: Blue ID: 2 DISTINCT TYPE COUNT: 1
Code: Blue ID: 3 DISTINCT TYPE COUNT: 1
Code: Green ID: 5 DISTINCT TYPE COUNT: 3
Code: Green ID: 6 DISTINCT TYPE COUNT: 1
Any enlightment to send my way?
Code: Blue
ID Type
1 A
1 B
2 A
3 A
Code: Green
ID Type
5 A
5 B
5 C
6 A
With the sample data above, I would want to end up with
DISTINCT TYPE COUNTS BY CODE AND ID:
Code: Blue ID: 1 DISTINCT TYPE COUNT: 2
Code: Blue ID: 2 DISTINCT TYPE COUNT: 1
Code: Blue ID: 3 DISTINCT TYPE COUNT: 1
Code: Green ID: 5 DISTINCT TYPE COUNT: 3
Code: Green ID: 6 DISTINCT TYPE COUNT: 1
Any enlightment to send my way?