Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copying a recordset

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
I have opened an ADODB recordset which is retrieving data from a SQL db.

All i want to do is copy that recordset to a new recordset like the following

Set myrs = sqlrs


but!! when i close the sqlrs it also closes myrs ????

Any help much appreciated


 
Try this:

Set MyRS = SQLRS.Clone

Good luck!

-Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Hi 99mel, You can also set the CursorLocation property of the first recordset to adUseClient and when you close it, the second recordset will be disconnected and you can use it as you see fit. Good Luck MLK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top