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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MICROSOFT ACCESS VB

Status
Not open for further replies.

seth0101

Technical User
Dec 6, 2004
5
0
0
US
THE FOLLOWING IS THE CODE THAT I AM USING TO PRINT A REPORT FROM A FORM. ON CLICK I NEED 2 COPIES OF THE REPORT TO PRINT. IS THERE A CODE THAT I NEED TO PLACE INTO MY CODE?

Sub PrintReceipt_Click()
On Error GoTo Err_PrintReceipt_Click

Dim stDocName As String

stDocName = "Sales Receipt"
DoCmd.OpenReport stDocName, acViewNormal, "Filter Query"

DoCmd.Close acForm, "Enter Sales"

Exit_PrintReceipt_Click:
Exit Sub

Err_PrintReceipt_Click:
MsgBox Err.Description
Resume Exit_PrintReceipt_Click

End Sub
 
You would be better posting this to forum705, which deals with Access VBA.

Chris

IT would be the perfect job......if it didn't have users!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top