MS Access Forum / General 2 / May 2008
Access export to Excel stops at about 45,000 not 65,000 XL limit
|
|
Thread rating:  |
EagleOne@microsoftdiscussiongroups - 27 May 2008 16:55 GMT Accrss 2003 Excel 2003 all up-to-date
Access export to Excel stops at about 45,000 records. The version of Excel (2003) will hold 65,000+ records. How do I get around this error?
Access gives this error: Run-time error '2036': "There are too many rows to output, based on the limitation specified by the output format or by Microsoft Office Access."
The command used is next: DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False
Jerry Whittle - 27 May 2008 17:12 GMT How many records are you trying to export? If more than 64,000, Access can stop well before it gets to that number.
If you upgrade to Office Pro 2007, Excel can handle 1,000,000 records.
 Signature Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> Accrss 2003 Excel 2003 all up-to-date > [quoted text clipped - 7 lines] > The command used is next: > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False EagleOne@microsoftdiscussiongroups - 27 May 2008 17:21 GMT Jerry,
The one Table in Access has 42,000 Records
The entire Database (20 tables)
> How many records are you trying to export? If more than 64,000, Access can > stop well before it gets to that number. [quoted text clipped - 12 lines] > > The command used is next: > > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False EagleOne@microsoftdiscussiongroups - 27 May 2008 17:30 GMT I did not finish my info:
The entire database has 20 tables and about 250,000 records in all.
That said, I have issued 20 back-to-back DoCmd.OutputTo acOutputTable ..... for all 20.
FYI four tables made it, but the 5th one with 42,000 failed.
> How many records are you trying to export? If more than 64,000, Access can > stop well before it gets to that number. [quoted text clipped - 12 lines] > > The command used is next: > > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False Ken Hudson - 27 May 2008 19:16 GMT I assume that it is not choking because you reached the 2GB size limit of the db?
 Signature Ken Hudson
> Accrss 2003 Excel 2003 all up-to-date > [quoted text clipped - 7 lines] > The command used is next: > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False Ken Hudson - 27 May 2008 19:19 GMT Sorry, never mind. Access capacity is not in question.
 Signature Ken Hudson
> I assume that it is not choking because you reached the 2GB size limit of the > db? [quoted text clipped - 10 lines] > > The command used is next: > > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False EagleOne@discussions.microsoft.com - 27 May 2008 21:41 GMT Ken,
The Access file size is 34MB
I am quite surprised that it choked at 42,000 when XL's limit is 65,000
Is there a parameter missing in my command? i.e., is Access assuming some previous limitation?
EagleOne
>I assume that it is not choking because you reached the 2GB size limit of the >db? david@epsomdotcomdotau - 27 May 2008 23:09 GMT Which method are you using to export? Which format are you exporting? The default format may limit at 16000 rows (the very old Excel limit before Office 97), or may be limited by available System Resources (Windows).
(david)
> Accrss 2003 Excel 2003 all up-to-date > [quoted text clipped - 7 lines] > The command used is next: > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False EagleOne@discussions.microsoft.com - 27 May 2008 23:20 GMT Actually, I may have solved it.
At home (vs work) I have a slower (1G) and 1/2 the memory (256M) of my work computer By changing DoCmd.OutputTo ...... to DoCmd.TransferSpreadsheet ....... did the job!
Thanks for all who took time
EagleOne
>Which method are you using to export? Which format are you >exporting? The default format may limit at 16000 rows (the very [quoted text clipped - 15 lines] >> The command used is next: >> DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False EagleOne@discussions.microsoft.com - 27 May 2008 23:22 GMT Actually, I may have solved it.
At home (vs work) I have a slower (1G) and 1/2 the memory (256M) of my work computer By changing DoCmd.OutputTo ...... to DoCmd.TransferSpreadsheet ....... did the job!
Thanks for all who took time
EagleOne
>Which method are you using to export? Which format are you >exporting? The default format may limit at 16000 rows (the very [quoted text clipped - 15 lines] >> The command used is next: >> DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False david@epsomdotcomdotau - 29 May 2008 22:44 GMT Yes, I didn't see the bottom half of your message: :~) acFormatXLS
Excel 5/95. 16000 rows max.
(david)
> Actually, I may have solved it. > [quoted text clipped - 24 lines] > >> The command used is next: > >> DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False Nicholas Meyer - 27 May 2008 23:18 GMT hmmm
> Accrss 2003 Excel 2003 all up-to-date > [quoted text clipped - 8 lines] > The command used is next: > DoCmd.OutputTo acOutputTable, "PEN_TBL", acFormatXLS, "PEN.xls", False
|
|
|