drosenkranz
Programmer
New to VFP. I need group totals and then grand totals at the end of my reports that are based upon the "content of a field" occuring in each record in the group, not an actual count of "all" the records.
Example: I have a date_completed field. I need a count of how many records contained a date (#-completed) and a count of how many did not contain a date (#-pending) for the Group. I want to reset these counters after each group on my report.
I also need to keep a second set of counters for a Grand Total of all Pending and Completed cases. I tried using something like:
if empty(date_complete) = .T. then gn_pending = gn_pending + 1
in the report varaible but kept getting errors- couldn't seem to find "where" I can put a condition for "when" to count (increment).
Can you give me any info/tips on how to increment counters (varaibles?) based upon a field's condition and how/when to reset them for the next group from within a FoxPro report?
Thanks.
Example: I have a date_completed field. I need a count of how many records contained a date (#-completed) and a count of how many did not contain a date (#-pending) for the Group. I want to reset these counters after each group on my report.
I also need to keep a second set of counters for a Grand Total of all Pending and Completed cases. I tried using something like:
if empty(date_complete) = .T. then gn_pending = gn_pending + 1
in the report varaible but kept getting errors- couldn't seem to find "where" I can put a condition for "when" to count (increment).
Can you give me any info/tips on how to increment counters (varaibles?) based upon a field's condition and how/when to reset them for the next group from within a FoxPro report?
Thanks.