1. Search field "agency_name" of table "agency" for possible matches to the
agency name I plan add; put results in recordset RF.
2. Add the similar-sounding names to table "matches" using recordset RT
Several loops of step #1 are made, looking for matching strings, likely
resulting in some same agencies being added to RF on successive passes.
Previously when I did this, for step #2, I looped through each record in RF
added in step #1, and used Seek to make sure the record was not already in
RT, then added it.
The goal was so that the user could look at possible matches before deciding
to add the new agency.
I am dissatisfied with the results, and feel there must be a better way to
do this. I thought perhaps I could just .AddNew, and if I hit an error on
..Update, just discard the .Addnew in error handling and move on (?).
Better still, is there some query that I could just run Like "INSERT INTO RT
all records NOT IN RF" ?
This seems so basic, and yet ...
--
Darryl Kerkeslager