A family of Microsoft relational database management systems designed for ease of use.
This is a 3-1 Report. It is a Service Report, a Traveler Report and a Packing Slip Report. Depending on what type of report it is, fields are made not visible and other fields are moved higher up on the report. If one field, which is a text field, the entire width of the report is empty, then it is made invisible and other fields below it moved a little higher. When in Service Report mode, almost are fields are active. If the work performed field is too large, the billing summary information is pushed to page two.
My thought behind doing that a year or so ago was that it was easier to make small changes to one report rather than 3. That may have been an error, but it does work really cool.
Page two knows it is Page 2 of 2, but Page 1 thinks it is Page 1 of 1. I tried just about every event. For the service report, one field must be turned off and some the rest of them are moved up .top parameter changed. Since I am doing some trickery like that, Access must think it all fits on one page, YET it knows the over-run is to two pages. I can monitor that and change a "of " & totalpages unbound textbox to "2", but by the time my code counts the second page the first page is already rendered and my change doesn't work on the first page.
I may have to run the report once. If a second page is counted, put that count in an invisible field on the form that calls it, then have the code close the report and reopen it and then the report can get the total pages off the form. So it will have to be in the code that calls the report. Hmmm, that's going to take some thought.