CSV Files & Carriage Returns
I have CSV files that I’m reading via a VB program; I have a problem with the following code
__________________________________________________
Open MYCSVFILE For Input As #filenum
Do Until EOF(filenum)
Line Input #filenum, str
Debug.print str
''''''''''''''''''''''‘My Processing
Loop
__________________________________________________
The problem is that one of the fields contains data collected from user entry (Got no control over this process) and the fifth field can contain anything such as comma’s and carriage returns. With the comma’s all we done in replace any found after the 5th occurrence of a comma…Not great but it works. The problem I have is with the carriage returns as it breaks the line is the wrong place.
How do I stop it happening, is there another way I can read the data line by line????