各位:
我想打印分組報表,並統計每個組的報表總頁數,有什麽方法沒?6.0可以實現,但9.0就不行了。
&&=======================================================================
select Curs_report
update Curs_report set ctotpage=1
private otpage
otpage=1 select custcode from Curs_report group by custcode into cursor tmptable
select tmptable
go top
scan all
select * from Curs_report where allt(Curs_report.custcode)==allt(tmptable.custcode) into curs tmptotpage
report form &taliorpath.Report\&ReportName noconsole
otpage=_pageno
select Curs_report
update Curs_report set ctotpage=otpage where allt(Curs_report.custcode)==allt(tmptable.custcode)
endscan
&&======================================================================有什麽方法解決不??
我想打印分組報表,並統計每個組的報表總頁數,有什麽方法沒?6.0可以實現,但9.0就不行了。
&&=======================================================================
select Curs_report
update Curs_report set ctotpage=1
private otpage
otpage=1 select custcode from Curs_report group by custcode into cursor tmptable
select tmptable
go top
scan all
select * from Curs_report where allt(Curs_report.custcode)==allt(tmptable.custcode) into curs tmptotpage
report form &taliorpath.Report\&ReportName noconsole
otpage=_pageno
select Curs_report
update Curs_report set ctotpage=otpage where allt(Curs_report.custcode)==allt(tmptable.custcode)
endscan
&&======================================================================有什麽方法解決不??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货