R
Robert Langen
In Access 2000 in a report I need to calculate various things via VB code.
The calculations are done within the event OnPrint of the group's header
section.
It works fine as long as the report is printed to a printer. But if the
report is previewed, the user e.g. could skip from page one to the last
page. In this case calculations are performed for the first and the last
page, but not for the pages between, which results in wrong sums.
So I´m looking for a method in the reports preview mode to skip page by page
until the last page is reached. All OnPrint events would be executed in the
right order. It could work like the small navigation buttons at the bottom
of the preview, but I don´t know how to use the same functionality in VB.
Has anybody an idea?
The calculations are done within the event OnPrint of the group's header
section.
It works fine as long as the report is printed to a printer. But if the
report is previewed, the user e.g. could skip from page one to the last
page. In this case calculations are performed for the first and the last
page, but not for the pages between, which results in wrong sums.
So I´m looking for a method in the reports preview mode to skip page by page
until the last page is reached. All OnPrint events would be executed in the
right order. It could work like the small navigation buttons at the bottom
of the preview, but I don´t know how to use the same functionality in VB.
Has anybody an idea?