Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print copies

Status
Not open for further replies.

ytakbob

Programmer
Jul 20, 2000
105
US
Say report form name is stdocname = PLS102
using DoCmd.OpenReport stDocName, acNormal
to print a report

I would ilke to control the number of copies from a field "label_copies" from the form that kcikc off the
openreport command...

I knew this at one time and cannot remember nor find the property that controls the number of copies to print....
Help.
Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347
 
You will need to use the DoCmd.PrintOut method instead of the DoCmd.OpenReport....

DoCmd.PrintOut [printrange][, pagefrom, pageto][, printquality][, copies][, collatecopies] It's not important that someone else can do in one step what it took you ten to do...the important thing is that you found a solution. [spin]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
 
Thanks Robert
I assume Selectobject is a prereq ?

Thanks alot. It's working !

Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347
 
one problem with selectobject...the command brings up the database windows to the user ??? ANy way of closing this or preventing this ? Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347
 
I believe you only have to use something like the following....

DoCmd.OpenReport strReport
DoCmd.PrintOut acPrintAll, , , acHigh, 10

This is what I am using and it works every time....
It's not important that someone else can do in one step what it took you ten to do...the important thing is that you found a solution. [spin]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top