Hi everyone. I've recently started dipping my toes into modules and macros in Access, so please be gentle with me. 
I have a form where the user enters a begin date and and end date and then pushes a button. The button runs a query and is then supposed to export data to an unformatted .xlsx file. The problem I'm having is that the exported file, while having the .xlsx file extension, won't open unless I edit the file name to change the extension to .xls. The code for the module is below, and it looks right to me, but again, this is new territory for me.
Any help that you great wise ones could provide would be deeply appreciated!

I have a form where the user enters a begin date and and end date and then pushes a button. The button runs a query and is then supposed to export data to an unformatted .xlsx file. The problem I'm having is that the exported file, while having the .xlsx file extension, won't open unless I edit the file name to change the extension to .xls. The code for the module is below, and it looks right to me, but again, this is new territory for me.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "iLienRed Upload (OSI)", "G:\Private\LOANSERV\Reconveyance\MDPS Files\Completed MDPS Uploads\iLienRed Upload - OSI - " & Format(Forms![frm_ilien_red_spreadsheet]![txtEndDt], "YYYY-MM-DD") & ".RAW.xlsx", True
Any help that you great wise ones could provide would be deeply appreciated!