bombplayer
Programmer
I have a database that is composed of customer payment data. This data is grouped by state then by customer similar to as follows:
Alabama
Customer 1 - 1/1/02 Payment Due
Customer 1 - 2/1/02 Payment Due
Customer 2 - 2/1/02 Payment Due
Alaska
Customer 1 - 1/1/02 Payment Due
Customer 2 - 2/1/02 Payment Due
I want to only report the data from a user defined interface. If a user inputs 2 or more, then only customer 1 from Alabama is reported. I have tried to use running totals but r.t.'s can't be used as selection criteria. I tried to use a counter but can not come up with the correct formula to use. The formula I was using was similar to:
Global Numbervar PastDuePayments;
If Pastdue=Yes then PastDuePayments:= Pastduepayments+1 else pastduepayments
This resulted in a running total but would zero out at the end of the group. Any help would be appreciated.
Alabama
Customer 1 - 1/1/02 Payment Due
Customer 1 - 2/1/02 Payment Due
Customer 2 - 2/1/02 Payment Due
Alaska
Customer 1 - 1/1/02 Payment Due
Customer 2 - 2/1/02 Payment Due
I want to only report the data from a user defined interface. If a user inputs 2 or more, then only customer 1 from Alabama is reported. I have tried to use running totals but r.t.'s can't be used as selection criteria. I tried to use a counter but can not come up with the correct formula to use. The formula I was using was similar to:
Global Numbervar PastDuePayments;
If Pastdue=Yes then PastDuePayments:= Pastduepayments+1 else pastduepayments
This resulted in a running total but would zero out at the end of the group. Any help would be appreciated.