I have a small app where I use Excel to dump the data from data base.
I create an ADODB recordset and use:
All works OK, unless I have a recordset with a large amount of data (rows).
This code takes OK recordsets up to 65536 rows of data, but no more.
I have some recordsets that have around 223 915 records, but only 65536 of them end up in my file. The rest are lost (?)
I did try to specify the Max number of rows, but that does not help:
Is there a limit of rows allowed in CopyFromRecordset?
What do I need to do to 'grab' all rows from my rst and dump it into Excel?
Could that be the limit of my computer's memory?
PS. Just tried the same code on other computer with newer version of Excel (1908 with the limit vs 2108 and all is well), so that must be it... (?)
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
I create an ADODB recordset and use:
Code:
Range("A2").CopyFromRecordset MyRecordSet
All works OK, unless I have a recordset with a large amount of data (rows).
This code takes OK recordsets up to 65536 rows of data, but no more.
I have some recordsets that have around 223 915 records, but only 65536 of them end up in my file. The rest are lost (?)
I did try to specify the Max number of rows, but that does not help:
Code:
Range("A2").CopyFromRecordset MyRecordSet, [red]5000000[/red]
Is there a limit of rows allowed in CopyFromRecordset?
What do I need to do to 'grab' all rows from my rst and dump it into Excel?
Could that be the limit of my computer's memory?
PS. Just tried the same code on other computer with newer version of Excel (1908 with the limit vs 2108 and all is well), so that must be it... (?)
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson