Hello all,
I am getting this error when I use another machine, but it works fine on another machine, how do I ensure this code works on all machines:
the error is:
Can't save the output data to the file you've selected.
The excel file is not open and it's not a template. Access creates the excel file everytime the code is runs and there is enough disk space.
Please help. Thanks!
I am getting this error when I use another machine, but it works fine on another machine, how do I ensure this code works on all machines:
Code:
Private Sub Command53_Click()
DoCmd.OutputTo acQuery, "QueryDetails", "MicrosoftExcel(*.xls)", "c:\ Query Details.xls", True, ""
End Sub
the error is:
Can't save the output data to the file you've selected.
The excel file is not open and it's not a template. Access creates the excel file everytime the code is runs and there is enough disk space.
Please help. Thanks!