Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is the maximum number of rows that can be output to Excel from Access when using the DoCmd.OutputTo command with an Access report ?

Posted on 2006-06-16
9
1,031 Views
Last Modified: 2008-01-09
What is the maximum number of rows that can be output to Excel from Access when using the DoCmd.OutputTo command with an Access report ?
I am using Access as the front end and SQL server as the back end database.

DoCmd.OutputTo acOutputReport, "rptDtlBranchAll", acFormatXLS, ExportedFile
0
Comment
Question by:zimmer9
9 Comments
 
LVL 34

Expert Comment

by:jefftwilley
ID: 16920710
about 65000 or so
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 16920752
Hi zimmer9,

Depending on the version of excel it varies, though 65536 is the max number of rows that the later versions can manage.

Tim Cottee
0
 

Author Comment

by:zimmer9
ID: 16920946
If I am using Microsoft Excel 2003 and in the references, I have Microsoft Excel 11.0 Object Library, then how many rows do you think the max would be ?



0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 44

Expert Comment

by:GRayL
ID: 16921011
You can export 65536 records per worksheet in a workbook.  However, in a workbook you can have up to 255 pages I believe, so with careful manipulation of your export, you can cram a lot of data into a workbook.
0
 

Author Comment

by:zimmer9
ID: 16921888
Is there a limit as to how many report pages can be exported perhaps due to page breaks ?

When I run the report from the Access Reports object, it totals 800 pages.

When the following line executes:

DoCmd.OutputTo acOutputReport, "rptDtlBranchA", acFormatXLS, ExportedFile

I get a run time error 2306
There are too many rows to output based on the limitation specified by the output format or by Microsoft Access.
0
 
LVL 44

Accepted Solution

by:
GRayL earned 500 total points
ID: 16923482
VB Editor (Ctl-G) click Help, Answer Wizard, type Specifications, and click on - Read about form and report specifications.  Does that answer you question?  I'm running A2K and according to the Specification, I can run a report with 65535 pages.
0
 
LVL 26

Expert Comment

by:dannywareham
ID: 16929330
For info - Office 12 Excel (should be out in October) can handle 1 million rows (about time!)

Also, if you need to export more than 65535 rows, you can loop through teh data and put the first 65k on one worksheet, then move to next worksheet etc...

Idea..?
0
 
LVL 44

Expert Comment

by:GRayL
ID: 16930073
Danny: I believe I said that in my post http:Q_21889007.html#16921011.

Ray
0
 
LVL 44

Expert Comment

by:GRayL
ID: 16962834
Thanks, glad I could help.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question