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,036 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Report Expression 4 27
microsoft Accesss Basic Coding 44 66
ms/access get folder and file list 20 30
Email question 12 20
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

733 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