doulostheou
Registered User.
- Local time
- Yesterday, 23:31
- Joined
- Feb 8, 2002
- Messages
- 314
Reports have never been my strong suit, so I would really appreciate any advise on how to approach this issue. I need to print one report that actually consists of several reports that belong to separate companies meeting a specific criteria.
The general format is that it shows company info and records for a specfiic audit. The group footer consists of totals followed by a page break. The next page (still in the footer) is a subreport listing a description of codes found in the report and a new page is forced after the section. Then the next company's report follows.
Everything looks and functions fine until a single company's records span more than one page. I am currently using a group header instead of a page header, as I cannot have the header information printed on the last page of each company's report (the one containing the sub report). However, my client has made it very clear that they need the header information to span multiple pages for a single company. It is apparently not as rare for a single company to have many different records as I thought.
The only solution that makes sense to me is to move the group header info into a page header and to use VBA to test certain conditions and then hide/show the page header accordingly. However, I have never quite gotten a grasp on how reports load and what information would even be available for me to test. How could I know when I am on the page that contains the subreport? At this point I am inside the group footer, but is this a property I can test with VBA?
I hope this question was clear, and I would appreciate any suggestions. If I am approaching this whole scenario entirely wrong, I would obviously appreciate knowing that too. Thanks in advance!
The general format is that it shows company info and records for a specfiic audit. The group footer consists of totals followed by a page break. The next page (still in the footer) is a subreport listing a description of codes found in the report and a new page is forced after the section. Then the next company's report follows.
Everything looks and functions fine until a single company's records span more than one page. I am currently using a group header instead of a page header, as I cannot have the header information printed on the last page of each company's report (the one containing the sub report). However, my client has made it very clear that they need the header information to span multiple pages for a single company. It is apparently not as rare for a single company to have many different records as I thought.
The only solution that makes sense to me is to move the group header info into a page header and to use VBA to test certain conditions and then hide/show the page header accordingly. However, I have never quite gotten a grasp on how reports load and what information would even be available for me to test. How could I know when I am on the page that contains the subreport? At this point I am inside the group footer, but is this a property I can test with VBA?
I hope this question was clear, and I would appreciate any suggestions. If I am approaching this whole scenario entirely wrong, I would obviously appreciate knowing that too. Thanks in advance!
Last edited: