pbuethe
Returning User
- Local time
- Today, 15:31
- Joined
- Apr 9, 2002
- Messages
- 210
I need to compare multiple fields in one table with corresponding fields in another table. For each field that matches I will increment a weighted score. Then, generate a report showing all the possible matches above a certain total score, showing the record IDs of the possible matches, and the names of the fields that matched. The problem is that I cannot join the two tables since they have different primary keys which do not have a corresponding field in the other table, so I don't think I can use queries. I need to compare every record in one table with every record in the other table. The results would look something like this:
HeaderID NewbornID Fields Score
M*21994 157 MLNAME LNAME DOB NFAC NREC 21
This shows that header table record M*21994 matched Newborn table record 157 in the fields MLNAME, LNAME, DOB, NFAC, and NREC for a total score of 21.
How can I do this in code? Thanks for any help.
HeaderID NewbornID Fields Score
M*21994 157 MLNAME LNAME DOB NFAC NREC 21
This shows that header table record M*21994 matched Newborn table record 157 in the fields MLNAME, LNAME, DOB, NFAC, and NREC for a total score of 21.
How can I do this in code? Thanks for any help.