Solved

Access "Continued on Next Page"

Posted on 2014-01-23
4
1,022 Views
Last Modified: 2014-02-27
Hi,

I have a report, that has several headers. How can I make the header say "Continued on Next Page" if it carries down to the next page in the report?

Thanks!
0
Comment
Question by:Computer Guy
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39803443
You can try this:

Add a textbox named "txContinued" to the Header section you want to "continue" and set the ControlSource to "=Count(*)" (note: include the equals sign in the expression).

Add a textbox to the Detail section named "txDetNum". Set the ControlSource to "=1" (include the = sign) and the RunningSum property to "Over Group".

In the Page Footer, add a textbox and set the ControlSource to this:

=IIF(txContinued < txDetNum, "Continue on Next Page", "")

You also may need to set some of the Detail or Group formatting options, like "KeepTogether=Yes".

Disclaimer: I picked this up from an old newgroup posting years ago and have used it several times, but not recently. I cobbled this together from memory, so hopefully it will work as expected. If it doesn't post your database with that code in place on your report and we can work it out.
0
 
LVL 57
ID: 39803558
There's also the .HasContinued/.WillContinue properties, but I don't know if they ever fixed the bugs in those.

Scott's approach will certainly work though.

Jim.
0
 
LVL 57
ID: 39803575
BTW, if you want to know if a group has continued, as long as you have a unique key within the group, you can save the last value print and then in the headers OnPrint, compare the current value to the last printed one.

If their the same, the group has continued onto the next page.

Jim.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39807806
Just a few more comments...

You did not posts any details on your report, (Grouping settings, Page breaks, etc)
...so it is difficult to give you can exact solution...

You also said:
I have a report, that has several headers.
...then
How can I make the header say...

So in which of the "several headers" do you want this to appear in?

The other stumbling block here is that it can difficult to put this type of info in a "Header".
This is because in order to see if more records will be printed on the next page, you need to know two things:
1. How many records are printed already on the page
2. The total number of records.
The number of records printed on the page is not known until after the page is printed. Thus, this value is not easily determined in the Page header (before any records print)...
...Make sense?

As Scot mentions, if you posted a sample of your DB and clearly state what values you want to appear and where, ...any of us will be able to assist.

;-)

JeffCoachman
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question