"Continued from previous page" on a grouped report

G

Gary J. Jahnke

I have a grouped report, set up to print the title of the group on each page
(the group's name is in the page header). It is also set to start a new page
for each group. It works great. However, some groups stretch to a second
page - which is fine. What I would like is to have the report automatically
add the phrase "Continued from previous page" or something similar to the
group's name on the second page where there is one. Not all groups require
two pages.
 
E

Evi

Use the control that counts your group pages to show or hide a text box that
contains the phrase

="Continued from Previous Footer" if the Group Page Number is >1

eg

If Me.[YourGroupPageNumber]>1 Then
Me.[txtContinued].Visible=True
Else
Me.[txtContinued].Visible = False
End If

combine this with your code for counting the group pages

Evi

In the On Format of the page footerevent include the lines
 
M

Marshall Barton

I have a grouped report, set up to print the title of the group on each page
(the group's name is in the page header). It is also set to start a new page
for each group. It works great. However, some groups stretch to a second
page - which is fine. What I would like is to have the report automatically
add the phrase "Continued from previous page" or something similar to the
group's name on the second page where there is one. Not all groups require
two pages.


Add a hidden text box (named txtLine) to the detail section.
Set its ControlSource to =1 and RunningSum to Over Group.

Then the group header section text box can use an expression
like:
=[group name field] & IIf(txtLine>1, " (Continued)", "")
 
G

Gary J. Jahnke

Thank you so much, Marshall! Your solution worked perfectly.

Marshall Barton said:
I have a grouped report, set up to print the title of the group on each page
(the group's name is in the page header). It is also set to start a new page
for each group. It works great. However, some groups stretch to a second
page - which is fine. What I would like is to have the report automatically
add the phrase "Continued from previous page" or something similar to the
group's name on the second page where there is one. Not all groups require
two pages.


Add a hidden text box (named txtLine) to the detail section.
Set its ControlSource to =1 and RunningSum to Over Group.

Then the group header section text box can use an expression
like:
=[group name field] & IIf(txtLine>1, " (Continued)", "")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top