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 / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

Printing the current page being used

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul M - 22 Dec 2005 19:08 GMT
I am writing a database that transmits information to a report for leases, I
would like to print only the current page (in the form) that I am using from
the report, but everytime I click the "print report" button, the entire
report (every page in it) prints out.  what settings do I use in the macro
for the report to ensure I am only printing the pages that I want?

Paul M
Marshall Barton - 22 Dec 2005 19:36 GMT
>I am writing a database that transmits information to a report for leases, I
>would like to print only the current page (in the form) that I am using from
>the report, but everytime I click the "print report" button, the entire
>report (every page in it) prints out.  what settings do I use in the macro
>for the report to ensure I am only printing the pages that I want?

Modify your macro to use the OpenReport action's
WhereCondition argument with a reference to the record's
primary key.

Signature

Marsh
MVP [MS Access]

Klatuu - 22 Dec 2005 19:38 GMT
Use  the Where Condition arguement of the OpenReport method.  You can do that
in the Click Event of the print report button before you open the report.
If you look in the VB Editor Help for OpenReport, you will find an example
of how it works.

> I am writing a database that transmits information to a report for leases, I
> would like to print only the current page (in the form) that I am using from
[quoted text clipped - 3 lines]
>
> Paul M
Paul M - 23 Dec 2005 17:57 GMT
ok, I've located the "where condition" in the macro, but I am still unclear
as to what I am supposed to do.  I am not a VB guru so it is still greek to
me, if I could have someone walk me through this I could finish my project.

Paul M

> Use  the Where Condition arguement of the OpenReport method.  You can do that
> in the Click Event of the print report button before you open the report.
[quoted text clipped - 8 lines]
> >
> > Paul M
 
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.