I have several different reports that I would like to open from a single form depending upon what the user selects. Is there a way to use a SQL for the name of the report in the DoCmd.openreport command? Or do I have to use a cascading string of If statements?
I have code that places either Daily, Monthly, or Quarterly in the following field.
[Forms]![F_View_Logs]![VerTag]
Can I use a SQL or a veariable to interchange Daily in the code below?
DoCmd.OutputTo acReport, "R_Daily_Logs", "", , , "", 0, acExportQualityPrint
I have code that places either Daily, Monthly, or Quarterly in the following field.
[Forms]![F_View_Logs]![VerTag]
Can I use a SQL or a veariable to interchange Daily in the code below?
DoCmd.OutputTo acReport, "R_Daily_Logs", "", , , "", 0, acExportQualityPrint