K
Kevin Clauberg
I've tried to execute a query with a DSum field to give a
running total. Here is my DSum formula:
Run: DSum("Standard","Query Running Totals","DatePart('h',
[Hour])<=
")
....where Standard is a field in my query, Query Running
Totals is the name of the query, and the expression
indicates that I want the sum to include all records where
the Hr field on my query is less than or equal to the hour
of the field Hour in the query supplying the data.
As I've read on the knowledge base, this seems to mimic
the example, but I keep getting error messages indicating
incorrect operator, among others. If I take out the
expression, the DSum works fine, but includes all records
in the query. I just want this field to include the total
for the current record and all records before it.
Any help? Thanks.
running total. Here is my DSum formula:
Run: DSum("Standard","Query Running Totals","DatePart('h',
[Hour])<=
")
....where Standard is a field in my query, Query Running
Totals is the name of the query, and the expression
indicates that I want the sum to include all records where
the Hr field on my query is less than or equal to the hour
of the field Hour in the query supplying the data.
As I've read on the knowledge base, this seems to mimic
the example, but I keep getting error messages indicating
incorrect operator, among others. If I take out the
expression, the DSum works fine, but includes all records
in the query. I just want this field to include the total
for the current record and all records before it.
Any help? Thanks.