Hi,
I'm trying to import some data saved in CSV format delimited by comma.
In fact it is the same file exported with the same database.
This is what I use to import data to my Student table :
This will add new records that doesn't exist in the current student table but will not update the existing records.
For example, if student "AAA, AAA" marries "BBB BBB" her new name is "AAA, BBB" on my external CSV file, on the database it is still "AAA, AAA". They both have the same ID key. When I import it into my database however nothing changes.
I have another option that will delete the existing table and replace it with the imported one, but that isn't the same because there may be existing records in my database that I want to keep.
My query is, how do I import a student table that will also update existing records?
I'm trying to import some data saved in CSV format delimited by comma.
In fact it is the same file exported with the same database.
This is what I use to import data to my Student table :
DoCmd.TransferText acImportDelim, , "Student", strFullPath, True
This will add new records that doesn't exist in the current student table but will not update the existing records.
For example, if student "AAA, AAA" marries "BBB BBB" her new name is "AAA, BBB" on my external CSV file, on the database it is still "AAA, AAA". They both have the same ID key. When I import it into my database however nothing changes.
I have another option that will delete the existing table and replace it with the imported one, but that isn't the same because there may be existing records in my database that I want to keep.
My query is, how do I import a student table that will also update existing records?