Every month we have to process a very poorly formatted CSV file for use in reporting. This CSV has commas in some of its values (ex. column1, 34,000, column3). From my perspective this is a retarded export format, I think you should let the end user's program format the values. Unfortunately I do not have the ability to alter the export format, and the end users of this msAccess DB need a "Magic button" approach.
My problem is that I cannot use "DoCmd.transferText" because it jumps to a new column every time it sees a comma, needless to say this will, at best result in mis-matched data. When I save the CSV in Excel first then import it, the import works flawlessly.
So my question is: how do I use VBA to convert this CSV to an XLS prior to import?
The full path to the CSV file is stored in a form field, from which an "Import" macro is launched. The form field is [imprt]![pth]
My problem is that I cannot use "DoCmd.transferText" because it jumps to a new column every time it sees a comma, needless to say this will, at best result in mis-matched data. When I save the CSV in Excel first then import it, the import works flawlessly.
So my question is: how do I use VBA to convert this CSV to an XLS prior to import?
The full path to the CSV file is stored in a form field, from which an "Import" macro is launched. The form field is [imprt]![pth]