N
Novice2000
Hi,
I would like to have a button that prints just the page of the form that you
are viewing. Below is the basic. How can I change it to have it print only
one page? Thanks.
Private Sub PrintScreen_Click()
On Error GoTo Err_PrintScreen_Click
Dim stDocName As String
Dim MyForm As Form
stDocName = "Baylor_2008"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Exit_PrintScreen_Click:
Exit Sub
Err_PrintScreen_Click:
MsgBox Err.Description
Resume Exit_PrintScreen_Click
End Sub
I would like to have a button that prints just the page of the form that you
are viewing. Below is the basic. How can I change it to have it print only
one page? Thanks.
Private Sub PrintScreen_Click()
On Error GoTo Err_PrintScreen_Click
Dim stDocName As String
Dim MyForm As Form
stDocName = "Baylor_2008"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Exit_PrintScreen_Click:
Exit Sub
Err_PrintScreen_Click:
MsgBox Err.Description
Resume Exit_PrintScreen_Click
End Sub