Forum Discussion

Tony2021's avatar
Tony2021
Iron Contributor
Sep 10, 2024
Solved

DateDiff with a Where Clause

Hello Experts,   I am trying to use a DateDiff to find the day count between 2 dates.  I need a Where Clause (blue part) I am getting a #error though.  I am not sure if the where clause below is...
  • Karl_Donaubauer's avatar
    Sep 11, 2024

    Hi,

     

    No matter how you formulate your WHERE statement, the DateDiff function does not have a WHERE part/argument. You therefore need a different approach.

     

    Perhaps a DLookUp with WHERE argument would help you to determine the first comparison value, but that would not be very performant.

     

    For more specific help, we would need a more detailed description.

     

    Servus
    Karl
    ****************

    Access Forever News DevCon
    Access-Entwickler-Konferenz AEK - 19./20.10. Nürnberg

Resources