FoxProProgrammer
Programmer
My form opens a report based on the selection in an option group. The user can select from one of many reports. Another option group on the form allows the user to direct the output to a screen preview, printer, or Excel. One of the reports requires two different RecordSources. The RecordSource for the report is a Query. I can use the OpenArgs parameter to pass a value to the report and set the RecordSource in the Open event of the report. No problem there. However, the command that I am using to direct the output to Excel doesn't have an openArgs parameter.
Is there a way to use the same report or do I have to create separate reports for each Query? Maybe there's another command to direct the output to Excel?
Thank you!
dz
Code:
DoCmd.outputTo acOutputReport, reportName, acFormatXLS, , True
Is there a way to use the same report or do I have to create separate reports for each Query? Maybe there's another command to direct the output to Excel?
Thank you!
dz