Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2005

Tip: Looking for answers? Try searching our database.

Report Will Continue Message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DT - 20 Oct 2005 18:07 GMT
I want to insert a "Continued on Next Page" message when there is more than
one page to a report.  I'm using the following code and it isn't working.  
Any suggestions?

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)

If Me.Section("PageHeaderSection").WillContinue = True Then
   Me.pgcont.Visible = True
   Else: Me.pgcont.Visible = False
End If

End Sub
Marshall Barton - 20 Oct 2005 19:58 GMT
>I want to insert a "Continued on Next Page" message when there is more than
>one page to a report.  I'm using the following code and it isn't working.  
[quoted text clipped - 9 lines]
>
>End Sub

You are misinterpreting the meaning of the WillContinue
property.  It only tells you if the section itself will
spill ove to the next page and the Page header/footer
sections will never do that.

If you only want to display teh continue message on all but
the last page of the report, then, first make sure you have
a text box that uses the Pages property (e.g.
="Page " & Page & " of " & Pages).   Then the code you're
looking for would be:
   
    Me.pgcont.Visible = (Me.Page < Me.Pages)
   
Signature

Marsh
MVP [MS Access]

DT - 20 Oct 2005 20:20 GMT
This is exactly what I needed...thank you!

> >I want to insert a "Continued on Next Page" message when there is more than
> >one page to a report.  I'm using the following code and it isn't working.  
[quoted text clipped - 23 lines]
>     Me.pgcont.Visible = (Me.Page < Me.Pages)
>    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.