Share via

about Access built-in function

Anonymous
2024-08-02T05:30:14+00:00

Why my Access 365 built-in function list has no DateDiff function. How can i add DateDiff function to my Access built-in function?

Microsoft 365 and Office | Access | For business | Other

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.

0 comments No comments

Answer accepted by question author

Anonymous
2024-08-07T00:24:21+00:00

As Duane Hookom mentioned,you can build a query.

The calculate field may not support this formular.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-08-06T22:26:30+00:00

    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.
    

    Was this answer helpful?

    0 comments No comments
  2. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2024-08-02T14:12:36+00:00

    What do you see if you build a query with any table and add this column

    TestDateDiff: DateDiff("d", #1/1/2024#, Date())
    

    Was this answer helpful?

    0 comments No comments
  3. George Hepworth 22,855 Reputation points Volunteer Moderator
    2024-08-02T12:30:46+00:00

    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.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-08-02T12:21:40+00:00

    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

    Was this answer helpful?

    0 comments No comments