In my application a report is printed but for some reason it ejects a blank page first. The code is pretty simple. Can anyone tell me why or how to stop it?
Code:
Private Sub cmdPrint_Click()
On Error GoTo Err_cmdPrint_Click
Dim stDocName As String
stDocName = "rptPrintData"
DoCmd.OpenReport stDocName, acPreview
Exit_cmdPrint_Click:
Exit Sub
Err_cmdPrint_Click:
MsgBox Err.Description
Resume Exit_cmdPrint_Click
End Sub