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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create ADO recordset from recordset

Status
Not open for further replies.

LPent

Programmer
Oct 3, 2002
50
TR
Hi,

Is it possible to create a recordset from another recordset in ADO?

I have one recordset named rstPrimary that contains "unknown" data. I do know however it contains a field called "[Type]" which can contain either the value "NEW" or "OLD". What I need is to split this recordset into 2 new recordsets one for each possible value of "[Type]".

 
You could use the clone method and then filter each recordset on each of those filters.
 
And if you have two record types so well defined it may be better to have two recordsets created with two different SQL's in the first place



Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
You are probably right. Thanks for the input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top