How can i transfer more than 16384 records into Excel2003

5 pts.
Tags:
Excel 2003
Microsoft Excel
Visual Basic
Hi All, I am trying to transfer a table with more than 20,000 records from access2003 to Excel2003, The code i am using within VB goes like this Private Sub Allstock_excel_Click() Dim filename As String filename = "D:Automotive_RaporeArchivesAllstockReportAllstock_" & Format(Now, "DD-MM-YYYY-HH-MM-00") & ".xls" DoCmd.TransferSpreadsheet acExport, 5, "tblAllstock", filename Dim obj Dim obook If MsgBox("Transfer Complete." & vbCrLf & vbCrLf & "Would you like to open the file now?", vbYesNo) = vbNo Then Exit Sub Set obj = CreateObject("Excel.Application") Set obook = obj.workbooks.Open(filename) obj.Visible = True End Sub The issue i am facing is that it wont let me transfer more than 16384 records into excel. Is there any coding or modifing the existing coding so i can transfer over that mark??? Thanks for your help
ASKED: October 16, 2008  4:52 PM
UPDATED: October 17, 2008  11:06 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

It looks suspiciously like your data exceeeds the 1GB memory limit of Excel 2003. The 2GB limit of Excel 2007 may not, in practice, be a sufficient solution. You could (with sufficient RAM have two independent copies of Excel open at the same time, each with part of your file but this may very well run counter to your application needs. Is there any reason why the whole of your Access database should be in Excel at once rather than a query subset?
For memory linits, see, for example, <a href=”http://www.decisionmodels.com/memlimitsc.htm”>this</a>
By the way, the second parameter for TransferSpreadsheet should be 8 rather than 5, for Excel2002 and 2003.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following