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

Printing multiple forms with 1 button?

Status
Not open for further replies.

gandalf1

Programmer
Sep 13, 2001
14
US
I would like to print three froms using a button at the end of the third form. How do I do this? Here is what I have:
Private Sub Print_Click()
On Error GoTo Err_Print_Click

Dim stDocName As String
Dim MyForm As Form


stDocName = "Index Performance Appraisal 1"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False

Exit_Print_Click:
Exit Sub

Err_Print_Click:
MsgBox Err.Description
Resume Exit_Print_Click


End Sub

Any help would be greatly appreciated!

Justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top