Number of copies to print

I

Ivor Williams

I have in in the AfterUpdate event of a form the following code:

If PrepareSubsTrans = -1 Then DoCmd.OpenReport "rptSubsTrans", acViewPrint

Everything works fine, but I want to print 2 copies of the report. How do I
include this in the code?

Ivor
 
K

Ken Snell \(MVP\)

Dim lngCount As Long
If PrepareSubsTrans = -1 Then
For lngCount = 1 To 2
DoCmd.OpenReport "rptSubsTrans", acViewPrint
Next lngCount
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top