aziz rasul
Active member
- Local time
- Today, 09:55
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have adhoc csv files that I want to import into a new table "tblTemp".
If any columns in the csv file are not text and there is an invalid entry e.g. a Date column which could have an invalid date, the field in "tblTemp" will be a Data\Time type field but the invalid entry will not be shown and instead an ImportError table will give info regarding the record error.
How do I import the columns in the csv file so that all the data types in "tblTemp" are all TEXT irrespective the data types in the csv file?
Code:
DoCmd.TransferText acImportDelim, "", "tblTemp", strFile, True
If any columns in the csv file are not text and there is an invalid entry e.g. a Date column which could have an invalid date, the field in "tblTemp" will be a Data\Time type field but the invalid entry will not be shown and instead an ImportError table will give info regarding the record error.
How do I import the columns in the csv file so that all the data types in "tblTemp" are all TEXT irrespective the data types in the csv file?