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.

Supress printing of empty reports

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kellogg - 26 Oct 2005 19:03 GMT
The answer to this question is probably so easy I should be shot for asking.  
I have a number of reports that are set to print with the click of a button.  
Problem is that some of the reports do not contain any information except for
the header, footer and some unbound text boxes.  How can I keep these reports
from printing and have my macro that prints the reports continue on to the
next report?
Marshall Barton - 26 Oct 2005 19:37 GMT
>The answer to this question is probably so easy I should be shot for asking.  
>I have a number of reports that are set to print with the click of a button.  
>Problem is that some of the reports do not contain any information except for
>the header, footer and some unbound text boxes.  How can I keep these reports
>from printing and have my macro that prints the reports continue on to the
>next report?

I don't think you can do this with macros.

Each report should use it's NoData event procedure to Cancel
the report using:
    Cancel = True

Then the form that opens the report needs to trap and ignore
error 2501 so you don't get a Action was Canceled message
box.

Signature

Marsh
MVP [MS Access]

 
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.