Hi,
It is possible to create serial no. as a field in SQL-Select from 1 to the last record along with balance.
*CAST(debit-credit AS N(10,2)) AS Balance
Thanks
Saif
It is possible to create serial no. as a field in SQL-Select from 1 to the last record along with balance.
Code:
Select actran.Reference, actran.cdate, actran.ccode, Code.Description,;
actran.debit, actran.credit, Code.chead;
FROM ;
village!actran ;
inner Join village!Code ;
ON actran.ccode = Code.ccode;
WHERE Code.chead == "PARTYC" And ;
cdate<=dt1 Into Cursor tmpec Readwrite nofilter
Sele cCode As cCode,;
description as description,;
sum(Debit) As Debit, ;
sum(Credit) As Credit ;
from Tmpec ;
group By cCode, Description ;
into Curs tempec Readwrite
*CAST(debit-credit AS N(10,2)) AS Balance
Thanks
Saif