Hi,
I created a form for users to answer to a parameter value and click a button to preview the report.
My goal is to export the result to excel.
1. When creating a second button ‘Export to Excel’ I attempted to use the wizard, but I did not see any option to export data to excel
2. I manually created a second button ‘Export to Excel’ and used the following:
However, the exported excel file doesn’t limit to the selection made (it shows everything)
Any idea?
TIA
OCM
I created a form for users to answer to a parameter value and click a button to preview the report.
My goal is to export the result to excel.
1. When creating a second button ‘Export to Excel’ I attempted to use the wizard, but I did not see any option to export data to excel
2. I manually created a second button ‘Export to Excel’ and used the following:
Code:
DoCmd.OutputTo acOutputQuery, "MyQueryName ", acFormatXLS, , True
Any idea?
TIA
OCM