HI
Create a Debit Column and a credit column in the grid and display "WHEN" 0-amt < 0 or amt > 0 respectivelt. The when event is the key.
If you want to extract that as an SQL,
SELECT *, IIF(amt <0, 0-amt,amt-amt) AS debit, ;
IIF(amt>0,amt,amt-amt) AS Credit FROM myTable ;
INTO Cursor mycursor ... etc..
Hope this helps you ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.