Hi,
Can someone please provide some badly needed assistance?
I'm using Access 2010 and would like to transfer a table to Excel 2010 (.xlxs). I was using Access 2003 and was able to successfully transfer to older .xls formats.
Using the .xlsx extension in the file name with the following code, produces an .xlsx spreadsheet that won't open! I get an error message saying the file format or extension isn't valid.
I read somewhere that it's better to do it in .xlm format, which Excel 2010 would open easily, but can't recall, or find, how to do it.
Thanks!
Can someone please provide some badly needed assistance?
I'm using Access 2010 and would like to transfer a table to Excel 2010 (.xlxs). I was using Access 2003 and was able to successfully transfer to older .xls formats.
Using the .xlsx extension in the file name with the following code, produces an .xlsx spreadsheet that won't open! I get an error message saying the file format or extension isn't valid.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, strTable, strSourceFile, HasFieldNames:=True
I read somewhere that it's better to do it in .xlm format, which Excel 2010 would open easily, but can't recall, or find, how to do it.
Thanks!