G
Guest
I have a form that a user picks date criteria and then clicks a command
button to update the query, verify that the query returns data and if it does
return data export the results to an Excel workbook and generate a pivot
table.
My problem is that if I set the startup option to hide the database window
the module fails and produces error #2046, when the database window is
visible the module runs w/o any problems. I've verified that the Excel
automation object is correctly addressed in the code and I've not had any
instances of multiple instances of Excel running.
Is it possible that the culprit is the DoCmd.OutputTo statement which is
what I'm using to export the query data to Excel?
Thanks ahead of time...
button to update the query, verify that the query returns data and if it does
return data export the results to an Excel workbook and generate a pivot
table.
My problem is that if I set the startup option to hide the database window
the module fails and produces error #2046, when the database window is
visible the module runs w/o any problems. I've verified that the Excel
automation object is correctly addressed in the code and I've not had any
instances of multiple instances of Excel running.
Is it possible that the culprit is the DoCmd.OutputTo statement which is
what I'm using to export the query data to Excel?
Thanks ahead of time...