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 / March 2005

Tip: Looking for answers? Try searching our database.

Printing report with AutoExec macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JerryC - 20 Mar 2005 18:45 GMT
I am trying to print a report when the application start
up using the AutoExec macro.
The following line gives a Action Failed error, but the
report prints OK anyway.

DoCmd.OpenReport "PMR1", acViewNormal, "PMQAutoPrintDues"

If I change line to acViewPreview:

DoCmd.OpenReport "PMR1", acViewPreview, "PMQAutoPrintDues"

then I don't get the Action Failed Error.
I suspect it has something to do with default printer.
Any ideas would be helpful.
JerryC - 20 Mar 2005 20:38 GMT
After spending 1/2 day on this I discovered the error was
caused by the report Close event.
Thanks anyway if you were working on this.

>-----Original Message-----
>I am trying to print a report when the application start
[quoted text clipped - 7 lines]
>
>DoCmd.OpenReport "PMR1",
acViewPreview, "PMQAutoPrintDues"

>then I don't get the Action Failed Error.
>I suspect it has something to do with default printer.
>Any ideas would be helpful.
>
>.
 
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.