LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
adi adi is offline
external usenet poster
 
Posts: 5
Default CopyFromRecordset not starting at current row

I can't get the CopyFromRecordset method to start at a specific row
Details
Using Access and Excel 2000, rst is an adodb.recordset in an mdb, range is an excel.range object
"range.CopyFromRecordset rst" works as expected
"range.CopyFromRecordset rst, 10" copies the first 10 records as expected
But after moving to some record, e.g. using "rst.move 5", "range.CopyFromRecordset rst, 10" will still copy the first 10 records of the rst, instead of starting with the 5th record as I want it to
According to http://msdn.microsoft.com/library/de...mRecordset.asp copying should begin at the current row of the recordset. (In fact, the first row becomes the current row when I call the CopyFromRecordset method, don't know why...
Please help! Thanks.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CopyFromRecordset Problem sunzj Excel Discussion (Misc queries) 0 August 2nd 07 06:32 PM
How to set excel pulldown list starting value to current cell valu Nolo44 Excel Discussion (Misc queries) 1 January 28th 07 06:59 PM
CopyFromRecordset does nothing E Harris Excel Programming 5 January 8th 04 04:29 PM
copyfromrecordset performance eli silverman Excel Programming 2 January 6th 04 09:29 PM
Copyfromrecordset Bug ? news.btx.dtag.de Excel Programming 1 August 1st 03 07:44 PM


All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"