You would think that this would be simple to do in Crystal Reports, but alas, I have not found a way.
CR 9 is connecting to a MS SQL database. Under the table "Tasks", I would like to know how many rows (entries) exist where the column "OPENDATE" is within a date range that I have specified in a Parameter Field.
At first, I figured the easiest thing to do would be to create a Running Total Field. It would summarize "TASKS.WO_NUM" (this is the table key) with type being "count", and evaluate based on formula "{TASKS.OPENDATE} in {?Report Range}".
When I test this, it will only return zero. To troubleshoot, I removed the evaluation, telling it to "evaluate for each record". When I do this, it returns "1". Then I switched the running total type to "sum", and it returns "9,080.00". This is the value of 'WO_NUM' on the first row.
Apparently, Crystal Reports is only evaluating one row when calculating this Running Total. However, this is not the case with formulas, because if I make a simple formula "Count ({TASKS.WO_NUM})", it will return "7,026.00", the number of rows in this table.
Any suggestions would be greatly appreciated.
CR 9 is connecting to a MS SQL database. Under the table "Tasks", I would like to know how many rows (entries) exist where the column "OPENDATE" is within a date range that I have specified in a Parameter Field.
At first, I figured the easiest thing to do would be to create a Running Total Field. It would summarize "TASKS.WO_NUM" (this is the table key) with type being "count", and evaluate based on formula "{TASKS.OPENDATE} in {?Report Range}".
When I test this, it will only return zero. To troubleshoot, I removed the evaluation, telling it to "evaluate for each record". When I do this, it returns "1". Then I switched the running total type to "sum", and it returns "9,080.00". This is the value of 'WO_NUM' on the first row.
Apparently, Crystal Reports is only evaluating one row when calculating this Running Total. However, this is not the case with formulas, because if I make a simple formula "Count ({TASKS.WO_NUM})", it will return "7,026.00", the number of rows in this table.
Any suggestions would be greatly appreciated.