DoCmd.OutputTo error 2606 too many rows

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?
 
J

Jerry Whittle

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top