W
Weiqin Xie
I wrote a DoCmd.TransferSpreadsheet ... code to transfer
an Access table to Excel spreadsheet in my C:\Temp\
directory, it works as expected.
However, when I try to do the same thing to transfer the
table a directory with following path:
DoCmd.TrannsferSpreadsheet,acExport, _
acSpreadsheetTypeExcel97, "CompleteOrderRecords", _
"C:\Temp\Ways Consulting and Company\Old & New\
CompleteOrders.XLS"
It generates Run-time error '3027'...
When I remove the subdirecory "Old & New", it works again.
My co-workers and I also try to using multiple quatation
marks and other methods, it's all the same.
The conlcusion: the code simply can't handle multiple
spaces in consecutive subdirectory. Single space is OK.
an Access table to Excel spreadsheet in my C:\Temp\
directory, it works as expected.
However, when I try to do the same thing to transfer the
table a directory with following path:
DoCmd.TrannsferSpreadsheet,acExport, _
acSpreadsheetTypeExcel97, "CompleteOrderRecords", _
"C:\Temp\Ways Consulting and Company\Old & New\
CompleteOrders.XLS"
It generates Run-time error '3027'...
When I remove the subdirecory "Old & New", it works again.
My co-workers and I also try to using multiple quatation
marks and other methods, it's all the same.
The conlcusion: the code simply can't handle multiple
spaces in consecutive subdirectory. Single space is OK.