473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Export to Excel limited to 65000 rows

547 512MB
I use
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputQuery, "ExportCaptDataIG", acFormatXLS, cDlg.GetName
to export data but is limited to 65000 rows.
I use Access + Excel 2007. Any suggestions to workaround this to make it unlimited, pls?
Oct 31 '12 #1
5 8556
zmbd
5,501 Expert Mod 4TB
neelsfer,

The max that can be done is the 65000 - that is the limit of the number of rows in the newer versions of Excel.

Please do a search on this site... there has been a considerable amount of conversation concerning excel exports over the past two or three months.
Oct 31 '12 #2
neelsfer
547 512MB
i don't seem to find a solution on this site related to the 65000 limit for Access 2007
Oct 31 '12 #3
zmbd
5,501 Expert Mod 4TB
I stand corrected....
- My apologies!

A friend of mine pointed out that ExcelV2007 the rows are the same as in v2010... (now why he was browsing the site I'll never know - he has always been gifted with the computers!) Excel 2007 Specifications and Limits

SO:
A tad more research and I've ran across the following support article: http://support.microsoft.com/kb/924681

Now this applies to the Ribbon from what I've read. I'll have to dig a little deeper for the VBA.
Nov 1 '12 #4
zmbd
5,501 Expert Mod 4TB
Neelsfer:
Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Sub zj_excel_query2sheet_1() 
  3. Dim fileName, qryout As String 
  4. fileName = "C:\Documents and Settings\All Users\Workbook1.xlsx" 
  5. qryout = "Query1" 
  6. DoCmd.TransferSpreadsheet acExport,acSpreadsheetTypeExcel12Xml, qryout, fileName, True 
  7. End Sub 
A few things...
-- for the "filename" you might try leaving the ".xlsx" off so that, in this example, the name becomes just "Workbook1"
-- "qryout" this must be a "stored" query... that is it must be part of the querydefs collection. So you either need to have it defined by hand... or do as I do and create the querydef and add to the collection as needed for each query... not really all that hard.
-- the last entry "true" will place the field names to headers.
-- enter the code into a module and then [F1] for more information.
Nov 1 '12 #5
NeoPa
32,556 Expert Mod 16PB
@Z
I came back to this and found that you'd already caught that the limit of 64K was removed for 2007.

On top of that you've provided another good answer.

Move along folks, nothing left to do here :-D
Nov 2 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ABC | last post by:
What methods can export excel file from stored procedure with parameters which input from web form?
1
by: panku007 | last post by:
hi All, I wanted to export excel data into ms word document through java coding.So please send me reply,according to my question. thanks
2
by: tbenchakroune | last post by:
How can I export Excel spreadsheets to Access db? Thanks, T.
1
by: san1014 | last post by:
Hi How to import and export excel data into oracle database using java. Thank you
0
by: trtaan | last post by:
Hi all, This is trtaan. I wanted to export around 300000 records that are present in my MS Access 2003 version table to excelsheet version8. I had written a code to export to multiple sheets in...
1
by: CF FAN | last post by:
Can Report Builder Export Excel Files with multiple Sheets How can I create a report that it can export in excel by multiple
3
by: minhtran | last post by:
Hi all Anyone has any idea how to get a Excel header column in VB.NET. Please, help me. Thank you so much in advance
0
by: Dubois | last post by:
Bonjour Lorsque je lance un export excel au travert d'une page en ASP.NET C#, cela fonctionne sur la machine de développement, par contre, sur le serveur de production j'ai l'erreur suivante : ...
4
by: hangar18 | last post by:
Hi, We are exporting data from a grid view to excel using the standard Response.Content type etc... But we would like to create new worksheets in case there are more than 65000 rows. I...
3
by: prashantdixit | last post by:
Hi, I am trying to export excel data to text file in a particular format. The Format for each ROW of Excel is like IMAN_ROOT/bin/import_file -f=<Column A> -type=<Column B> -d=<Column C>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.