Is it possible to print at the bottom of each page “Page __ of __ ” where the value refer to the grouped section (in this case, by SSN), rather than for the entire collection of all pages?
Any help would be appreciated.
Thanks,
Sean
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Page 1 of page 3 BY GROUP (Access 97 SR-2)
I don’t think this is possible. At least I’ve never seen how it can be done. I thought I could do it with a subreport, but neither the Page nor Pages property works with a subreport. The only thing I can suggest is to create a routine that call the routine continually, once for each of your “groups”, include that group in a WHERE clause within the OPenReport method.
>>I’ve not tried to set the total number of pages this way, but you can set the OnFormat command of the page header to reset the PAGE number, so each section or group starts with 1. <<
Setting the Page number is no problem. However, you can't set the PAGES property; it is read-only and is the total number of pages in the report. So, you can determine how many pages in a section in order to be able to be able to number pages: 1 of 2, 2 of 2, 1 of 3, etc.
The solution is in redimentioning pages. Go to the access web. There is a solution. But i have not tried it.
http://www.mvps.org/access/reports/rpt0013.htm
hth Richard
Sean: Try this link
http://www.mvps.org/access/reports/index.htm
Scroll down to ” Printing First and Last Page Numbers for Report Groups”. I have used it and it works. I think it is what you want. Do read it carefully as it is intense. HTH.
This is quite possible. Besides the solution offered, there is also a MSKB article with a similar solution, but it uses a table rather then an array to store the page numbers.
It boils down to forcing the report engine into 2 passes, the first is used to pickup the pages, the 2nd to format a control with the number.
Jim.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications