I am trying to save a report to a PDF file based on a Combobox selection of reports, but can't figure out
how to place a combobox selection into a docmd.output line of code?
Ex:
Replace "Summary" with a Combobox selection, this way I'm not hardcoding report names.
And can it also be used as a selection in a case statement? Case 1, 2 and 4 are working in my project.
Case 1
Print Report
Case 2
View Report
Case 3
Case 4
Email Report
Any ideas?
Thank you
how to place a combobox selection into a docmd.output line of code?
Ex:
Replace "Summary" with a Combobox selection, this way I'm not hardcoding report names.
Code:
DoCmd.OutputTo acOutputReport, "Summary", acFormatPDF, "C:\Reports" & ".pdf"
Case 1
Print Report
Case 2
View Report
Case 3
Code:
DoCmd.OutputTo acOutputReport, "Summary", acFormatPDF, "C:\Reports" & ".pdf"
Email Report
Any ideas?
Thank you
Comment