TRANSFORM Count(Breakdown.Hours) AS CountOfHours
SELECT Breakdown.Description, Breakdown.Customer, Count(Breakdown.Hours) AS [Total Of Hours]
FROM Breakdown
WHERE Breakdown.Code = [Forms]![Pre-Break]![Code]
GROUP BY Breakdown.Description, Breakdown.Customer
PIVOT Breakdown.Day;
这是我要运行的 SQL 语句,我有一个名为 Code 的 Pre-Break 形式的组合框,此语法适用于我在 WHERE 之后没有 GROUP BY 和 PIVOT 的其他 SQL 语句。我尝试将 after 放在最后,但仍然出现错误。谁能告诉我我做错了什么?