T
Tom & Roxanne Hanson
Greetings all.
I have two tables that have a many to many relationship for 3 fields. Table
1 has 6 fields, table 2 has 12. Each table has 1 unique field (but not
related to each other). I need a method to select a record from the first
table, find a record in the second table that matches the 3 common fields
and then update each record. I need to loop through all records in both
tables to mark each as a match. To add to the dilema, after each record
from table 1 has been matched it cannot be reused, the same for table 2.
The method I designed was to pull all records into 2 RECORDSETS, retreive
the field data from recordset1 record 1, verify it was not marked as
matched, check it against each record in recordset 2, if a match (and not
marked as a match) then run an update query to each record showing a match
found. I then reset recordset 2, loop to record 2 of recordset 1 and do it
again. Since my tables have up to 20,000 records this is very time
consuming and resource crazy.
If anyone has any ideas, please help.
Tom Hanson
I have two tables that have a many to many relationship for 3 fields. Table
1 has 6 fields, table 2 has 12. Each table has 1 unique field (but not
related to each other). I need a method to select a record from the first
table, find a record in the second table that matches the 3 common fields
and then update each record. I need to loop through all records in both
tables to mark each as a match. To add to the dilema, after each record
from table 1 has been matched it cannot be reused, the same for table 2.
The method I designed was to pull all records into 2 RECORDSETS, retreive
the field data from recordset1 record 1, verify it was not marked as
matched, check it against each record in recordset 2, if a match (and not
marked as a match) then run an update query to each record showing a match
found. I then reset recordset 2, loop to record 2 of recordset 1 and do it
again. Since my tables have up to 20,000 records this is very time
consuming and resource crazy.
If anyone has any ideas, please help.
Tom Hanson