Hello,
I have been struggling with this function wich returns the wrong result (25,25), when I should get (23,32) :
DAvg("[pLast]", "qryCurrent", "dataCot BETWEEN #" & Now() & "# AND #" & DateAdd("d", -10, Now()) & "#")
if i paste the date parameter ( BETWEEN #04/10/2021 09:10:45# AND #19/09/2021 09:10:45# )into the query i get the following results:
i also noticed that a count of records does not return 10 records as it should
?Dcount("[pLast]", "qryCurrent", "dataCot BETWEEN #" & Now() & "# AND #" & DateAdd("d", -dias, Now()) & "#")
112
Any thoughts about this
Thanks for your help
I have been struggling with this function wich returns the wrong result (25,25), when I should get (23,32) :
DAvg("[pLast]", "qryCurrent", "dataCot BETWEEN #" & Now() & "# AND #" & DateAdd("d", -10, Now()) & "#")
if i paste the date parameter ( BETWEEN #04/10/2021 09:10:45# AND #19/09/2021 09:10:45# )into the query i get the following results:
ID | pLast | dataCot |
24148 | 23,92 | 20-set-21 |
24147 | 23,92 | 21-set-21 |
24146 | 23,67 | 22-set-21 |
24145 | 23,54 | 23-set-21 |
24144 | 23,44 | 24-set-21 |
30318 | 23,45 | 27-set-21 |
30317 | 23,059999 | 28-set-21 |
30316 | 22,94 | 29-set-21 |
30315 | 22,829999 | 30-set-21 |
30314 | 22,899999 | 01-out-21 |
i also noticed that a count of records does not return 10 records as it should
?Dcount("[pLast]", "qryCurrent", "dataCot BETWEEN #" & Now() & "# AND #" & DateAdd("d", -dias, Now()) & "#")
112
Any thoughts about this
Thanks for your help