I need to export data into various versions of Excel. The user needs to select the correct version.
I have created a combo box and set the row source to:
"14; Excel 2010; xlsx;12; Excel 2007; xlsx;11; Excel 2003; xls;10; Excel 2002; xls;9; Excel 2000; xls;8; Excel 97; xls;7; Excel 95; xls"
This provides a combo box with 3 columns.
1st column = Excel Version for vba code
2nd column = Excel Version for non technical users
3rd column = File extension
I am experiencing the following problems when I run the code:
DoCmd.TransferSpreadsheet acExport, 14, "qrySupplierQuantity", "C:\Temp\Data.xlsx"
I get an error 2508 - spread sheet type invalid
DoCmd.TransferSpreadsheet acExport, 9, "qrySupplierQuantity", "C:\Temp\Data.xls"
I cannot open the file! I get an error message that I am trying to open a file that is in a different format to the file extension.
How do I correct these errors?
Many thanks in advance
I have created a combo box and set the row source to:
"14; Excel 2010; xlsx;12; Excel 2007; xlsx;11; Excel 2003; xls;10; Excel 2002; xls;9; Excel 2000; xls;8; Excel 97; xls;7; Excel 95; xls"
This provides a combo box with 3 columns.
1st column = Excel Version for vba code
2nd column = Excel Version for non technical users
3rd column = File extension
I am experiencing the following problems when I run the code:
DoCmd.TransferSpreadsheet acExport, 14, "qrySupplierQuantity", "C:\Temp\Data.xlsx"
I get an error 2508 - spread sheet type invalid
DoCmd.TransferSpreadsheet acExport, 9, "qrySupplierQuantity", "C:\Temp\Data.xls"
I cannot open the file! I get an error message that I am trying to open a file that is in a different format to the file extension.
How do I correct these errors?
Many thanks in advance