jtseltmann
Programmer
I have a generic question that I am looking for some guidance on...here is the situation...
The main goal is to remove out extra commas (within double-quotes) and trim leading/trailing spaces from each field in a comma delimited file.
sample data row:
CODE," Name, Name ", CODE2, CODE3,#
sample end result:
CODE,Name Name,CODE2,CODE3,#
I currently have code that imports to a temp table then I create a recordset and loop through each field for each record and processes a "data cleaning" routine to do just what I said earlier. The code works great but it is not a very fast process and my data files can get quite large. It only can process about two records per second. My sample file has about 10 rows per record that it is looping through.
Does anyone have an idea as to how to update each field in a recordset any faster?
Thank you in advance for any tips or hints...
Jeff
The main goal is to remove out extra commas (within double-quotes) and trim leading/trailing spaces from each field in a comma delimited file.
sample data row:
CODE," Name, Name ", CODE2, CODE3,#
sample end result:
CODE,Name Name,CODE2,CODE3,#
I currently have code that imports to a temp table then I create a recordset and loop through each field for each record and processes a "data cleaning" routine to do just what I said earlier. The code works great but it is not a very fast process and my data files can get quite large. It only can process about two records per second. My sample file has about 10 rows per record that it is looping through.
Does anyone have an idea as to how to update each field in a recordset any faster?
Thank you in advance for any tips or hints...
Jeff