Dear all,
I am looking to a friendly solution to import a csv file (csv files are imported randomly, many times per month) with 5 columns into a new table in access that has more columns that the file I am importing).
Problem description:
1. two columns have meta data information and need to be split in pieces. Not all the pieces of the metadata are used (just 2 codes are relevant).
2. from the metadata information, I extract country code, look it up in the table and add a column to the table that data is imported to.
3. there are also some import data conditions added to the import file.
A piece of code that AI have hard time understanding (and have not programmed in access yes):
DoCmd.TransferText acImportDelim, "CSV_comments_specification", "tbl (A01) MIR comments", _
FileToImport, True, ""
I am looking to a friendly solution to import a csv file (csv files are imported randomly, many times per month) with 5 columns into a new table in access that has more columns that the file I am importing).
Problem description:
1. two columns have meta data information and need to be split in pieces. Not all the pieces of the metadata are used (just 2 codes are relevant).
2. from the metadata information, I extract country code, look it up in the table and add a column to the table that data is imported to.
3. there are also some import data conditions added to the import file.
A piece of code that AI have hard time understanding (and have not programmed in access yes):
DoCmd.TransferText acImportDelim, "CSV_comments_specification", "tbl (A01) MIR comments", _
FileToImport, True, ""