
Creating a new recordset by joining 2 existing recordsets
Maybe I am going about this the wrong way, but my issue is that I need
to process data from a DBaseII table into an SQL database. To do this, I
have created a recordset from the DBase table and another recordset(s)
from the SQL table(s). Not all of the records in the DB table are in the
SQL table but only the matching records are to be updated. OK, simple
enough so far.
I need to find matching records and do some processing on each record
before updating the SQL tables. Since I only have about 5000 records in
the DBase table, and only about 4000 will have a match in the SQL
tables, therefore I need to use:
rsSQL.Find "sqlItem= '" & rsDB!dbItem & "'"
If rsSQL doesn't have the rsDB item, then find takes excessive amounts
of time to complete (statistically around 5 seconds per find).
It would be better to create another instance of the recordset that is a
subset of the initial recordsets to ensure that only matching items are
inclusive.
Can I:
1. Create another recordset by joining 2 existing recordsets?
2. Create an initial recordset by joining a local DBase table with an
SQL table on an enterprise server?
Since you have read this entire, excessively lengthy, message, I welcome
your input and suggestions.
Excellence is achieved through 1% inspiration and 99% perspiration.
*** Sent via Developersdex http://www.*-*-*.com/ ***
Don't just participate in USENET...get rewarded for it!