kupe
Technical User
- Sep 23, 2002
- 376
Something is wrong with this crosstab query. It is fed by two queries, and my join arrangement is the most likely cause.
The result should arrive with 10 columns, but it makes 15. And some of the fictitious columns have totals, so it isn't a matter of simply deleting the unwanted columns.
TRANSFORM Count(qryEmployees.Roots) AS Ethnicity
SELECT qryEmpWorkers.DailyGrind AS [Work]
FROM qryEmpWorkers INNER JOIN qryEmployees ON qryEmpWorkers.EmployeeIDFK = qryEmployees.EmployeeID
GROUP BY qryEmpWorkers.DailyGrind
PIVOT qryEmployees.Roots;
Can an Expert find the fault please?
The result should arrive with 10 columns, but it makes 15. And some of the fictitious columns have totals, so it isn't a matter of simply deleting the unwanted columns.
TRANSFORM Count(qryEmployees.Roots) AS Ethnicity
SELECT qryEmpWorkers.DailyGrind AS [Work]
FROM qryEmpWorkers INNER JOIN qryEmployees ON qryEmpWorkers.EmployeeIDFK = qryEmployees.EmployeeID
GROUP BY qryEmpWorkers.DailyGrind
PIVOT qryEmployees.Roots;
Can an Expert find the fault please?