未定义的函数DiffDate错误

时间:2016-02-23 16:47:51

标签: ms-access

SELECT AppID, Description, Min([Transaction Date]) AS TransactionDate, [Filing Date], Title, DIFFDATE(day,[Transaction Date], [Filing Date]) AS [Date Difference]
FROM AppProsHist LEFT JOIN Applications ON AppProsHist.AppID = Applications.ID
WHERE ((Description)='Non-Final Rejection')
GROUP BY AppID, Description, [Filing Date], Title, [Date Difference]
ORDER BY Min([Transaction Date]) DESC;

我正在尝试从填充日期和交易日期获得差异,并且我不断收到DiffDate的未定义函数...任何想法?

1 个答案:

答案 0 :(得分:3)

我认为你是在DATEDIFF而不是DIFFDATE。

https://support.office.com/en-us/article/DateDiff-Function-e6dd7ee6-3d01-4531-905c-e24fc238f85f

DATEDIFF("d",[Transaction Date], [Filing Date])