Not sure if report is closed

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hi

I have a command button "print" that opens a new instance of a report and
opens the print dialog (the report don't show) with this code:

On Error Resume Next
Dim rpttemp As Report_Cheque

DoCmd.OpenReport rpttemp, acViewPreview
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, rpttemp

Should I assume that the report is closed?

Many thanks in advance
Richard
 
Back
Top