TRANSFORM Sum([出库单明细 ].数量) AS 数量之总计
SELECT [出库单 ].客户, [出库单明细 ].产品名称, [出库单明细 ].产品图号
FROM [出库单 ] INNER JOIN [出库单明细 ] ON [出库单 ].出库单ID=[出库单明细 ].出库单ID
WHERE ((([出库单 ].日期)=#2/5/2006# and ([出库单 ].日期)=#3/20/2006#) AND (([出库单 ].客户) Like "专用车*"))
GROUP BY [出库单 ].客户, [出库单明细 ].产品名称, [出库单明细 ].产品图号
ORDER BY [出库单 ].客户, [出库单明细 ].产品图号
PIVOT [出库单 ].日期;