TRANSFORM Sum(Record.amount) AS amount之Sum
SELECT Year(Record.date) & "-" & Month(Record.date) AS 月份
FROM Record
WHERE (((Record.date)>=[Forms]![SQL]![DateBegin] And (Record.date)<=[Forms]![SQL]![DateEnd]) AND ((Record.apanage)=[Forms]![SQL]![Combo20]))
GROUP BY Year(Record.date) & "-" & Month(Record.date)
PIVOT Record.Name;
问题:当交叉查询中使用的参数为某一窗体的控件值,出现错误提示: Microsoft Jet 数据库引擎不能将 '[Forms]![SQL]![DateBegin]' 识别为一个有效的字段名或表达式。