Here is my code for Opening, then printing, then Closing the report.
The end user wanted to be able to see the report, even for a second, then have it go away.
Dim strReportName As String
Dim strCriteria As String
strReportName = “rptPrintRecord”
strCriteria = “[AccCostNum]='” & Me![AccCostNum] & “‘”
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
DoCmd.OpenReport strReportName, acViewPrint, , strCriteria
DoCmd.CloseReport “rptPrintRecord”
End Sub
I get a Compile Error: ‘Method or Data Member’ not found and the ‘CloseReport’ is highlighted
Please help
Paul