DoCmd.OutputTo error 2606 too many rows

  • Thread starter Thread starter SJ
  • Start date Start date
S

SJ

I am using a doCmd output to Microsoft Excel and get the message "too many
rows" I suspect it is using Excel 2003 where the max rows is 65k. I also
have Excel 2007 with > 1 million rows. How can I force it to output to
Excel 2007?
 
Try this:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "qryA",
"N:\qryA.xlsx", True

Remember to name the file with an xlsX suffix or there could be problems.
 
Back
Top