May be
SELECT *,;
SUM(IIF(Mode="B",BAGS,0)) AS B1,;
SUM(IIF(Mode="L",BAGS,0)) AS L1;
----> FROM AVLBOOK;
ORDER BY ACC_NO;
GROUP BY ACC_NO;
INTO CURSOR XYZ
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst