how when new group when start new page
Posted: Wed Jul 12, 2006 2:18 am
hi master
sir i have group report
my need is when new group start then start new page
is use this code for balance
cs_1 this is summrise colunm and count then record no
is new group then is statr from 1
if :cs_1 =1 then
:cp_1 :=0;
if nvl(:drbal,0)>0 and nvl(:debit,0)>0 then
:cp_1 :=nvl(:drbal,0) + nvl(:debit,0);
end if;
else
if nvl(:cp_1,0)<0 and nvl(:credit,0)>0 then
:cp_1 :=(nvl(:cp_1,0) - nvl(:credit,0));
end if;
end if;
return :cp_1;
end;
this my code check group status if new group start then start new balance
same is i need new page when i start new group
please give me idea
thank
aamir
sir i have group report
my need is when new group start then start new page
is use this code for balance
cs_1 this is summrise colunm and count then record no
is new group then is statr from 1
if :cs_1 =1 then
:cp_1 :=0;
if nvl(:drbal,0)>0 and nvl(:debit,0)>0 then
:cp_1 :=nvl(:drbal,0) + nvl(:debit,0);
end if;
else
if nvl(:cp_1,0)<0 and nvl(:credit,0)>0 then
:cp_1 :=(nvl(:cp_1,0) - nvl(:credit,0));
end if;
end if;
return :cp_1;
end;
this my code check group status if new group start then start new balance
same is i need new page when i start new group
please give me idea
thank
aamir