Sample data would help, along with knowing what values are being passed to your function. If Now-lastcall is greater than the expression, your counter starts over again. I guess that's what you want? Also, using Now might be an issue - depends on what your date values really are, not just what they look like due to formatting in the table or query. As functions, Now will always be greater than Date.
Last edited by Micron; 02-11-2022 at 10:43 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.