I am working on an application in which one runs a series of reports, "A", "B", etc., and then runs a final report reporting the total NUMBER OF PAGES in each of the previous reports, and a grand total.
I've tried to approach the problem with a while loop, and the moveToPage command, with a counter. But its not giving accurate results. Any help appreciated. Following is code from one of the lettered report pushbuttons, showing the code that doesn't work. Thanks.
-----------
method pushButton(var eventInfo Event)
var
rpt Report
rptInfo reportPrintInfo
pno number
qpno query
endVar
rptInfo.name = "SchedA"
rpt.open(rptInfo)
moveToPage(1)
pno = 1
while rpt.moveToPage(pno + 1)
pno = pno + 1
quitloop
endwhile
rpt.moveToPage(1)
qpno = Query
RSelect.db | Casno |
| _join1 |
Rsum.DB | Casno | Apg |
| _join1 | changeto ~pno |
EndQuery
qpno.executeQBE()
endMethod
I've tried to approach the problem with a while loop, and the moveToPage command, with a counter. But its not giving accurate results. Any help appreciated. Following is code from one of the lettered report pushbuttons, showing the code that doesn't work. Thanks.
-----------
method pushButton(var eventInfo Event)
var
rpt Report
rptInfo reportPrintInfo
pno number
qpno query
endVar
rptInfo.name = "SchedA"
rpt.open(rptInfo)
moveToPage(1)
pno = 1
while rpt.moveToPage(pno + 1)
pno = pno + 1
quitloop
endwhile
rpt.moveToPage(1)
qpno = Query
RSelect.db | Casno |
| _join1 |
Rsum.DB | Casno | Apg |
| _join1 | changeto ~pno |
EndQuery
qpno.executeQBE()
endMethod