Limitation of rows to output

R

Roy Goldhammer

Hello there

I'm trying to output Query to excel and i gave the error 2306

There are too many rows to output. Based On limitation specified by output
format or by microsoft access

the query has 17000 rows.

What is the limitation and how can i baypass it?
 
J

John Nurick

Hi Roy,

Export using DoCmd.TransferSpreadsheet, without using the "Save
formatted" option. This allows up to 65536 rows, which is the most Excel
can handle.
 
R

Roy Goldhammer

Whell John

65535 is fine for me. I have problem of outputing more then 10000 rows

I'm using:

DoCmd.OutputTo acOutputQuery, "ObjectName", acoutputxls, , True

Does this structure is limited?
 
J

John Nurick

Yes, Roy. If you may have more than 16,384 rows you have to use DoCmd.
TransferSpreadsheet acExport...

Whell John

65535 is fine for me. I have problem of outputing more then 10000 rows

I'm using:

DoCmd.OutputTo acOutputQuery, "ObjectName", acoutputxls, , True

Does this structure is limited?
 

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