thardyjackson
Registered User.
- Local time
- Yesterday, 20:44
- Joined
- May 27, 2013
- Messages
- 45
I am trying to export a table with VBA. This code works fine:
The code below (with a path) does NOT work. The only difference is the path prefix. I have tried different paths with no success. The error is run time 2302 "Microsoft Access can't save the output data to the file you've specified."
Any ideas?
Code:
DoCmd.OutputTo acOutputQuery, objectName, "ExcelWorkbook(*.xlsx)", "TESTFILE.xlsx"
The code below (with a path) does NOT work. The only difference is the path prefix. I have tried different paths with no success. The error is run time 2302 "Microsoft Access can't save the output data to the file you've specified."
Code:
DoCmd.OutputTo acOutputQuery, objectName, "ExcelWorkbook(*.xlsx)", "C:\TESTFILE.xlsx"
Any ideas?