Hiding the report from users
Using Access 2003,I have a module which opens a report in Design Mode. To stop the report displaying to the user, I have the following line:
DoCmd.OpenReport strReportName, acViewDesign, , , acHidden
However, when the following piece of code is run, the report still opens up in Design Mode to the end-user :
DoCmd.OpenReport strReportName, acViewDesign, , , acHidden
rs.MoveFirst
Do Until rs.EOF
Reports!strReportName.Filter = "Criteria = " & rs!Crit
DoCmd.OutputTo acOutputReport, strReportName, A_FORMATRTF, _
strFileLocation & rs!Crit & ".rtf"
rs.MoveNext
Loop
rs.Close
DoCmd.Close acReport, strReportName
Question: what need's to be changed with the above code to ensure the
report doesn't open up in design mode to the end-user?
Thank you
|