exRP12Nuke
Technical User
Good Afternoon,
I have a bit of code that exports a table in my database to an Excel Spreadsheet, but I cannot get it to save in .xlsx format, only in .xls format. What am I doing wrong? I assume that it is the Excel type that is the issue, but I cannot figure out which one I need to use.
Here is the bit of code.
When I try to make the ".xls" part ".xlsx" the code does not run, I am at a loss.
Thanks!
I have a bit of code that exports a table in my database to an Excel Spreadsheet, but I cannot get it to save in .xlsx format, only in .xls format. What am I doing wrong? I assume that it is the Excel type that is the issue, but I cannot figure out which one I need to use.
Here is the bit of code.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel5, "TblLastRI", _
"G:\Data\EMS\Product Support\Contracts\Contract Reports\R&I Table Backup\ _
LastR&I Backup_" & Format(Date, "yyyymmdd") & ".xls", True
When I try to make the ".xls" part ".xlsx" the code does not run, I am at a loss.
Thanks!