Load OWC spreadsheet in batches from recordsets

R

rweide

I need to load a large amount of data (thousands of rows) to spreadsheet
directly from recordset - in separate operations.
I set the rs.PageSize to 500 (loading 500 rows at a time), and used
copyFromRecordset to load it. And it is successful.
When users click a <Next> button, I would set the recordset's PageCount to
2, and use copyFromRecordset (i.e.
Spreadsheet1.ActiveSheet.Cells.copyFromRecordset rs, 500) to load the second
batch - and it still loads the first 500 rows!
What's not right? Please help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top