Help needed. I'm stuck with a query that calculates the running total of a simple table like this one:
Table: T1
Field 1 -CountofField1 -Cumulative
John - 2 - 50%
Charles - 1 - 75%
Tom - 1 - 100%
that is: a) the count of individual cases and b) the running total for that record. No problem with a), not sure about b). So far I've got something like this (designed through the Access grid):
Questions:
Table: T1
Field 1
John
Charles
Tom
John
............
The query (say Q1) should show this:John
Charles
Tom
John
............
Field 1 -CountofField1 -Cumulative
John - 2 - 50%
Charles - 1 - 75%
Tom - 1 - 100%
that is: a) the count of individual cases and b) the running total for that record. No problem with a), not sure about b). So far I've got something like this (designed through the Access grid):
This shows the correct numbers for the count (CountOfField1). It could also show the running total, but lacks the criteria to include only up to the current record, which I'm not able to find.SELECT Field1, CountofField1 as X, DSum("X", "Q1", criteria)
Questions:
- Any ideas for the criteria for DSum here?
- If not, any other way of finding the running total with this design (pls don't propose reports or the like) ?