G
Guest
I need to import data from an excel sheet to a table in access. The excel
sheet may contain records that are already in the database. While importing,
the records that are already in the database must not be imported.
My database has two columns - Card number & Status
While importing, access must look for a match in the card number column, if
the match exists, then a second comparison must be done with the Status
column. If the status column also matches, then the record must not be
imported.
However, if the card number matches and the status does not match, then the
record must be imported.
Records wherein the card number does not match must also be imported.
Scenario (excel sheet)
Card number Status
1 Closed
2 Open
Table (Access)
Card number Status
1 Closed
2 Closed
From the above example, when importing only the record for card number 2
must be imported.
I am not good at coding.
Sashi
sheet may contain records that are already in the database. While importing,
the records that are already in the database must not be imported.
My database has two columns - Card number & Status
While importing, access must look for a match in the card number column, if
the match exists, then a second comparison must be done with the Status
column. If the status column also matches, then the record must not be
imported.
However, if the card number matches and the status does not match, then the
record must be imported.
Records wherein the card number does not match must also be imported.
Scenario (excel sheet)
Card number Status
1 Closed
2 Open
Table (Access)
Card number Status
1 Closed
2 Closed
From the above example, when importing only the record for card number 2
must be imported.
I am not good at coding.
Sashi