Claire31415
New member
- Local time
- Today, 06:45
- Joined
- Dec 18, 2023
- Messages
- 3
Hi everyone!
I've done some searching and I am getting close to a solution but I just can't seem to get it quite right.
I need to count the dates in order until the ID code changes.
Sounds easy, but I just get zeros when I run. I'm pretty sure it's because of the date format, but I'm at a bit of a remedial level with my Access these days.
Any help is much appreciated!
SELECT PRODUCT.PROPNUM, PRODUCT.P_DATE, PRODUCT.GAS, DCount("*","PRODUCT","[PROPNUM]='" & [PROPNUM] & "' And [P_DATE]<=" & [P_DATE])+0 AS [Number Value]
FROM PRODUCT;
What I'm trying to achieve is this, but I'm just getting zero values
I've done some searching and I am getting close to a solution but I just can't seem to get it quite right.
I need to count the dates in order until the ID code changes.
Sounds easy, but I just get zeros when I run. I'm pretty sure it's because of the date format, but I'm at a bit of a remedial level with my Access these days.
Any help is much appreciated!
SELECT PRODUCT.PROPNUM, PRODUCT.P_DATE, PRODUCT.GAS, DCount("*","PRODUCT","[PROPNUM]='" & [PROPNUM] & "' And [P_DATE]<=" & [P_DATE])+0 AS [Number Value]
FROM PRODUCT;
What I'm trying to achieve is this, but I'm just getting zero values