A
Amateur
Dear Sirs
I would like to print my reports automatically to an PDF file, without
changing my Printer Options upfront.
I created a command button to print those records - but up-to-now the
records are going straight to the printer. How can I change the code so that
they are printed to a PDF file?
Here is the normal code maybe someone can change it to that what I need:
Private Sub Command41_Click()
On Error GoTo Err_Command41_Click
Dim stDocName As String
stDocName = "endofmonthstatementbie30preport"
DoCmd.OpenReport stDocName, acNormal
stDocName = "endofmonthstatementbie30"
DoCmd.OpenReport stDocName, acNormal
stDocName = "endofmonthstatementclientsnonpool"
DoCmd.OpenReport stDocName, acNormal
Exit_Command41_Click:
Exit Sub
Err_Command41_Click:
MsgBox Err.Description
Resume Exit_Command41_Click
End Sub
I would like to print my reports automatically to an PDF file, without
changing my Printer Options upfront.
I created a command button to print those records - but up-to-now the
records are going straight to the printer. How can I change the code so that
they are printed to a PDF file?
Here is the normal code maybe someone can change it to that what I need:
Private Sub Command41_Click()
On Error GoTo Err_Command41_Click
Dim stDocName As String
stDocName = "endofmonthstatementbie30preport"
DoCmd.OpenReport stDocName, acNormal
stDocName = "endofmonthstatementbie30"
DoCmd.OpenReport stDocName, acNormal
stDocName = "endofmonthstatementclientsnonpool"
DoCmd.OpenReport stDocName, acNormal
Exit_Command41_Click:
Exit Sub
Err_Command41_Click:
MsgBox Err.Description
Resume Exit_Command41_Click
End Sub