Question : MS Access - Is there a way to reset the  Page Number after a Group.

I have a report in Access that groups information by certain organizations so each organization gets their own report but I only have to run a single report to save time and energy.

Everything is fine, with the exception of the page numbers, which display as continuous and I am wondering if anyone knows a method of resetting the page number with the group...I have the group footer set to start a new page after.

Thanks!!

Answer : MS Access - Is there a way to reset the  Page Number after a Group.

Two MSKB's that will help:

http://support.microsoft.com/kb/209215

http://support.microsoft.com/kb/841779

 First is how to simply reset the page number at the start of each group.  The second is how to do "X of Y" for each group.  Note that the second uses a very usefull technique with Access reports; the two pass printing.

Referencing the pages property anywhere in the report will force Access to do two passes on the report.  First to get the total pages, the second to actually print.  This is great for doing indexes, tables of contents, etc.  

However any code you want to execute in the first pass must be in something other then the OnPrint event.  Access does not fire this event on the first pass.

JimD.

Random Solutions  
 
programming4us programming4us