sandingdude
IS-IT--Management
I have an access database with 2 tables within it. I need to write a VB script that will compare the data in 2 tables (which each have the same exact fields). Within the 2 tables I need it to compare the FNAME and LNAME from each table and prompt me with a dialog box displaying the FNAME, LNAME, PHONE from each table that is a duplicate asking me to either ignore or remove from Table 1. Table 1 is actually an import of data and Table 2 is the main table. Table 1 is actually a purchased list of mailing addresses. After I compare it to the present database and make sure there are no duplicates. I will take Table 1 and import it into our main database. Any ideas on how to do this? Thank you for your help.
Examples below:
The Tables
Table 1
FNAME LNAME PHONE
Bob Smith 577-2323
Dan Brown 232-5234
Table 2
FNAME LNAME PHONE
Bob Smith 555-2323
Robert Green 232-3234
The Dialog Box
A Duplicate Was Found
Table 1
Bob Smith 577-2323
Table 2
Bob Smith 555-2323
Would you like to ignore or remove entry from Table 1?
Examples below:
The Tables
Table 1
FNAME LNAME PHONE
Bob Smith 577-2323
Dan Brown 232-5234
Table 2
FNAME LNAME PHONE
Bob Smith 555-2323
Robert Green 232-3234
The Dialog Box
A Duplicate Was Found
Table 1
Bob Smith 577-2323
Table 2
Bob Smith 555-2323
Would you like to ignore or remove entry from Table 1?