By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

Export large query from Access 2007 to Excel 2007

P: 1
I need to rack and stack some data using a pivottable. I'd like to do it in excel. I have the query in Access 2007 finished but it is 800,000+ records. How can I get it to Excel keeps giving me errors related to 65K line limit. Super frustrated....and not highly skilled at Access but on a deadline.
Nov 20 '08 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 2.5K+
P: 2,545
Hi. I realise that this response is too late to help you now - sorry for the lack of response.

Anyway, exporting to Excel is the problem here. Excel has historically had a limit of 64K rows, and that limit is built in to the Access-to-Excel export routines. You could in VBA loop through your data, exporting blocks of rows up to the row limit for any one worksheet, inserting new worksheets and exporting to these as necessary.

Unfortunately this would be of no help at all if you wanted to use an Excel pivottable or any other Excel facility on all rows of your data, as the 800k rows would be split across around 13 worksheets.

Conclusion is that if you want to export more than 64K rows from Access then exporting to Excel workbooks is out.


PS Excel 2007 has a much greater row limit of 1M rows. It would therefore be possible to transfer all of your rows to the one worksheet using VBA code to do so, but clearly the built-in export routines are still limited by the lower row limits of previous versions.
Nov 29 '08 #2

P: 1
I am dealing with a database of 4.5 million records. I have a query of about 250,000 that i am trying to export to a text file or excel and the porgram can hardly open the file let alone work with it! What is going on with 2007? Is it a total POS or am I doing something wrong. I should be able to export the data somehow and then import it into excel right?

Let me know

Feb 27 '09 #3

Expert 2.5K+
P: 2,653

P: 54
DoCmd.TransferSpreadsheet acExport, 10, etc.
Apr 28 '10 #5

Post your reply

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