A family of Microsoft relational database management systems designed for ease of use.
As Duane Hookom mentioned,you can build a query.
The calculate field may not support this formular.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Why my Access 365 built-in function list has no DateDiff function. How can i add DateDiff function to my Access built-in function?
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
As Duane Hookom mentioned,you can build a query.
The calculate field may not support this formular.
Hi,
I tried to create one new feild which values type is caculation in one table. This new field values need caculate the difference of Now and another feild value which data type is date. When I enter designer I can't find DateDiff in build in function list.
What do you see if you build a query with any table and add this column
TestDateDiff: DateDiff("d", #1/1/2024#, Date())
Please tell us which version of Access you are using.
Please explain how you are trying to use DateDiff(). In a query? In VBA?
Note that Access Web Apps were deprecated years ago, so it's not very likely that is a factor here.
Hi Zhangjie,
Are you utilizing a web-based version of the Access database?
If so, please be aware that the DateDiff function is not supported in web-based databases.
However, I can direct you to a helpful article that discusses the DateDiff function in detail.
It's applicable to various versions of Access, including Microsoft 365, Access 2021, Access 2019, and Access 2016:
https://support.microsoft.com/en-us/office/datediff-function-e6dd7ee6-3d01-4531-905c-e24fc238f85f
Best Regards,
Sophia