I have a list of reports in a combo box and a frame that has 2 options Print Report or View Report.
Is there a way I can write code that will print or view the report selected in the combo box. At the moment I have code like
If cboReportsList = "2" And PrintOptions = "1" Then
DoCmd.OpenReport "rptXXXXXX" acPreview.........
But if I have like 100 reports my code is going to be long. Can I print according to a where statement?
Is there a way I can write code that will print or view the report selected in the combo box. At the moment I have code like
If cboReportsList = "2" And PrintOptions = "1" Then
DoCmd.OpenReport "rptXXXXXX" acPreview.........
But if I have like 100 reports my code is going to be long. Can I print according to a where statement?