When I run the query as a "select" query, it works fine and returns the values. When I change the query type to "crosstab", Access no longer returns any values in the query.
Here is my "select" query SQL:
Expand|Select|Wrap|Line Numbers
- SELECT Systems.System, CrossJoinWithInterface.sub_name1, Systems_1.System, CrossJoinWithInterface.sub_name2, Last(CrossJoinWithInterface.Type) AS LastOfType
- FROM Systems AS Systems_1 INNER JOIN (Systems INNER JOIN CrossJoinWithInterface ON Systems.System_ID = CrossJoinWithInterface.system_id_1) ON Systems_1.System_ID = CrossJoinWithInterface.system_id_2
- GROUP BY Systems.System, CrossJoinWithInterface.sub_name1, Systems_1.System, CrossJoinWithInterface.sub_name2
- HAVING (((Systems_1.System)="plumbing"));
Expand|Select|Wrap|Line Numbers
- TRANSFORM Last(CrossJoinWithInterface.Type) AS LastOfType
- SELECT Systems.System, CrossJoinWithInterface.sub_name1
- FROM Systems AS Systems_1 INNER JOIN (Systems INNER JOIN CrossJoinWithInterface ON Systems.System_ID = CrossJoinWithInterface.system_id_1) ON Systems_1.System_ID = CrossJoinWithInterface.system_id_2
- WHERE (((Systems_1.System)="plumbing"))
- GROUP BY Systems.System, CrossJoinWithInterface.sub_name1, Systems_1.System
- PIVOT CrossJoinWithInterface.sub_name2;