mikemck7
Technical User
- Dec 17, 2003
- 38
I need to build an account statement report in VFP8 from two tables; CUST and TRNS. The table structures are as follows:
CUST: CUSTID (C), NAME (C), BALN (N)
TRNS: CUSTID (C), DATE (D), CHRG (N), PYMT (N)
The tables are related on the key field CUSTID. BALN contains the balance as of the previous report period.
The detail band contains DATE, CHRG, PYMT and a field for the running balance calculation, so that the output looks something like this:
[tt]
DATE DESCRIPTION CHG PMT BAL
11/01/05 Previous Balance 504.54
11/17/05 Payment Recvd 370.54 134.00
11/30/05 Monthly Fee 360.00 494.00
[/tt]
How do I get the running balance field calculated properly? Thanks.
Mike
CUST: CUSTID (C), NAME (C), BALN (N)
TRNS: CUSTID (C), DATE (D), CHRG (N), PYMT (N)
The tables are related on the key field CUSTID. BALN contains the balance as of the previous report period.
The detail band contains DATE, CHRG, PYMT and a field for the running balance calculation, so that the output looks something like this:
[tt]
DATE DESCRIPTION CHG PMT BAL
11/01/05 Previous Balance 504.54
11/17/05 Payment Recvd 370.54 134.00
11/30/05 Monthly Fee 360.00 494.00
[/tt]
How do I get the running balance field calculated properly? Thanks.
Mike