Re: Using a Recordset as a Data Source for a New Query and Resulting Recordset
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Wed, 16 Nov 2005 12:12:10 -0000
> I have an ADO recordset (rs1) in memory and want to run a query off of
> it, creating a new ADO Recordset (rs2) containing a subset of the
> records from the original ADO Recordset (rs1). Would anyone be kind
> enough to provide a small code snippit in VB which would allow me to
> accomplish this?
Can't be done. Whatever made you think it could?
Having said that you can clone a recordset from another recordset with
filter set.
But if you do, any changes to a record in one recordset is a change in the
other.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmthclonex.asp
for an example
Stephen Howe
.
- References:
- Prev by Date: Differing Results between Record binding and Collect method
- Next by Date: Error running sp in sybase
- Previous by thread: Using a Recordset as a Data Source for a New Query and Resulting Recordset
- Next by thread: Differing Results between Record binding and Collect method
- Index(es):
Relevant Pages
|
|