B
benatom
I only need certain columns from a csv. I built an import spec which
is referred to like this:
DoCmd.TransferText acImportDelim, "CSV_Import_Spec", "tbl_TEMP",
strCSV_path, True, ""
If the csv was formatted exactly the same for each import, the import
spec would work fine every time.
However, occasionally new columns which I do not need are added to the
csv (it will always have the columns I need), thus the import using
the predefined import spec "CSV_Import_Spec" fails.
Is there an alternative method for importing the columns I need from a
csv, possibly not using a pre-built import spec?
is referred to like this:
DoCmd.TransferText acImportDelim, "CSV_Import_Spec", "tbl_TEMP",
strCSV_path, True, ""
If the csv was formatted exactly the same for each import, the import
spec would work fine every time.
However, occasionally new columns which I do not need are added to the
csv (it will always have the columns I need), thus the import using
the predefined import spec "CSV_Import_Spec" fails.
Is there an alternative method for importing the columns I need from a
csv, possibly not using a pre-built import spec?