Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default CopyRecordset in ADO

I need to copy the recordset to a spreadsheet in dao you can use
copyrecordset but I can't find it in ADO can someone tell me how this is done
in ado please.
Charles
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CopyRecordset in ADO

Charles,

It also exits in ADO, in Excel 2000 up at least.

Here is an example of some of my code that uses it

' Check to make sure we received data.
If Not oRS.EOF Then
Sheet1.Range("A1").CopyFromRecordset oRS
Else
MsgBox "No records returned.", vbCritical
End If



--
HTH

Bob Phillips

"vqthomf" wrote in message
...
I need to copy the recordset to a spreadsheet in dao you can use
copyrecordset but I can't find it in ADO can someone tell me how this is

done
in ado please.
Charles



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default CopyRecordset in ADO

Thanks I looked in the help files but found no reference to it.

"Bob Phillips" wrote:

Charles,

It also exits in ADO, in Excel 2000 up at least.

Here is an example of some of my code that uses it

' Check to make sure we received data.
If Not oRS.EOF Then
Sheet1.Range("A1").CopyFromRecordset oRS
Else
MsgBox "No records returned.", vbCritical
End If



--
HTH

Bob Phillips

"vqthomf" wrote in message
...
I need to copy the recordset to a spreadsheet in dao you can use
copyrecordset but I can't find it in ADO can someone tell me how this is

done
in ado please.
Charles




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CopyRecordset in ADO

If you type copyfromrecordset in the immediate window, put the cursor in the
word, and then hit F1, you should find it

--
HTH

Bob Phillips

"vqthomf" wrote in message
...
Thanks I looked in the help files but found no reference to it.

"Bob Phillips" wrote:

Charles,

It also exits in ADO, in Excel 2000 up at least.

Here is an example of some of my code that uses it

' Check to make sure we received data.
If Not oRS.EOF Then
Sheet1.Range("A1").CopyFromRecordset oRS
Else
MsgBox "No records returned.", vbCritical
End If



--
HTH

Bob Phillips

"vqthomf" wrote in message
...
I need to copy the recordset to a spreadsheet in dao you can use
copyrecordset but I can't find it in ADO can someone tell me how this

is
done
in ado please.
Charles






Reply
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



All times are GMT +1. The time now is 04:55 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"