Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to update a database with a CSV file. I am using the VBScript Split function to put the values into an array. At first everything seemed to work, but then I noticed one of the fields (an address field) contains commas on a few of the records.
When I open up the CSV file in Excel (i.e. by clicking on it in Windows Explorer), then all the columns come out correctly. In other words it is not confused by the additional commas. However when I process the file into a database (using VBScript Split function to put each line into an array defining a comma as the delimiter), the result is wrong because of the commas in the field values. Has anyone got any ideas as to why Excel can differentiate between the commas, but my code can't? I fear I'm doing something stupid.
TIA
Mel
When I open up the CSV file in Excel (i.e. by clicking on it in Windows Explorer), then all the columns come out correctly. In other words it is not confused by the additional commas. However when I process the file into a database (using VBScript Split function to put each line into an array defining a comma as the delimiter), the result is wrong because of the commas in the field values. Has anyone got any ideas as to why Excel can differentiate between the commas, but my code can't? I fear I'm doing something stupid.
TIA
Mel