I was hoping that someone could at least tell me if this is possible.
I have a table that (among other fields) has an integer field (call it X) and a date field call it Y).
I was hoping that I could create a query that captured these two fields (no problem), but also included a third, build expression field.
This latter field is supposed to be a sum of the previous X-values up until the current record date Y-value.
Ex:
If I have the following info
X Y
1 jan-3-07
3 jan-5-07
23 jan-5-07
12 jan-19-07
Then the query would be built so that the results would look like one of the following
X Y Z OR Y Z
1 jan-3-07 1 jan-3-07 1
3 jan-5-07 4 jan-5-07 27
23 jan-5-07 27
12 jan-19-07 39 jan-19-07 39
I can't seem to be able to build the right expression to achieve this. I can easily code this through a form using VB, but I assume it is equally possible through just a query.
I would be grateful for any and all help people can provide,
-arm
I have a table that (among other fields) has an integer field (call it X) and a date field call it Y).
I was hoping that I could create a query that captured these two fields (no problem), but also included a third, build expression field.
This latter field is supposed to be a sum of the previous X-values up until the current record date Y-value.
Ex:
If I have the following info
X Y
1 jan-3-07
3 jan-5-07
23 jan-5-07
12 jan-19-07
Then the query would be built so that the results would look like one of the following
X Y Z OR Y Z
1 jan-3-07 1 jan-3-07 1
3 jan-5-07 4 jan-5-07 27
23 jan-5-07 27
12 jan-19-07 39 jan-19-07 39
I can't seem to be able to build the right expression to achieve this. I can easily code this through a form using VB, but I assume it is equally possible through just a query.
I would be grateful for any and all help people can provide,
-arm