J
Jason
When I use the "Outputto" method to output a query to an
Excel file, I am using a form to set a part of the path as
the filename. I get a run time error '2302'. Can anybody
tell me the best method to output a query to a filename
which is determined by the form?
DoCmd.OutputTo acOutputQuery, "qryShiftsRoster",
acFormatXLS, "C:\" & Forms![Shifts Roster Form]![Date 1]
& ".xls", False
I am trying to output the qryShiftsRoster query in Excel
to C:\230803.xls using the Date 1 field in the form to set
the 230803 in the filename.
Any suggestions would be greatly appreciated.
Regards,
Jason
Excel file, I am using a form to set a part of the path as
the filename. I get a run time error '2302'. Can anybody
tell me the best method to output a query to a filename
which is determined by the form?
DoCmd.OutputTo acOutputQuery, "qryShiftsRoster",
acFormatXLS, "C:\" & Forms![Shifts Roster Form]![Date 1]
& ".xls", False
I am trying to output the qryShiftsRoster query in Excel
to C:\230803.xls using the Date 1 field in the form to set
the 230803 in the filename.
Any suggestions would be greatly appreciated.
Regards,
Jason