how make report balance like in accounting report balance? credit/debit amount balance ------------------------------------------------ C 1500 5000 D 500 3500 C 2000 4000 C 500 2000 C 500 1500 C null 1000 note: C : Credit D : Debit If credit row : balance - amount if debit row : balance + amount and result of debit or creadit, write on the next row on balance.....