compare 2 recordsets
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 00:01:06 +0100
What would be the best (fastest) way to do this:
I have 2 ADO recordsets say A and B.
They both have a common field, say ID
Now I need to delete all the records in recordset A where
the value in the field ID is not found in the field in recordset B.
These are values of the datatype Long.
The ID field will be sorted ascending in both recordsets.
Now, I could do this with a double loop, but that could be a bit slow and I
wonder if this could be done better with a filter or find.
I am coding in VBA.
Thanks for any advice.
RBS
.
- Follow-Ups:
- Re: compare 2 recordsets
- From: Bob Barrows [MVP]
- Re: compare 2 recordsets
- Prev by Date: Re: Trouble getting just one scalar value into a VBA variable...
- Next by Date: Re: compare 2 recordsets
- Previous by thread: Re: Trouble getting just one scalar value into a VBA variable...
- Next by thread: Re: compare 2 recordsets
- Index(es):
Relevant Pages
|
|