G
GD
I have a command button on a form that prints the form via a macro. SQL:
Private Sub PrintFunction_Click()
Dim MyForm As Form
Dim pageno As Integer
pageno = Me.CurrentRecord
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, MyForm.Name, True
DoCmd.PrintOut acPages, pageno, pageno, , 1
DoCmd.SelectObject acForm, MyForm.Name, False
End Sub
However, right now it prints on several sheets of paper. How do I get it to
reduce in size so that it prints on one page only, using SQL? Thanks for the
help!
Private Sub PrintFunction_Click()
Dim MyForm As Form
Dim pageno As Integer
pageno = Me.CurrentRecord
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, MyForm.Name, True
DoCmd.PrintOut acPages, pageno, pageno, , 1
DoCmd.SelectObject acForm, MyForm.Name, False
End Sub
However, right now it prints on several sheets of paper. How do I get it to
reduce in size so that it prints on one page only, using SQL? Thanks for the
help!