Access 相差 10 天 SQL

A difference of 10 days in Access SQL

我想在 Access SQL 中显示在要求日期前 10 天已发货的订单数量 SQL,但我似乎无法正确使用语法。

SELECT COUNT(*)
FROM Orders
WHERE DATEDIFF(day,RequiredDate,ShippedDate)=10;
SELECT Count(*)
FROM Orders
WHERE (((DateDiff("d",[Orders].[RequiredDate],[Orders].[ShippedDate]))=10));