S
Shawna
Hi
Is it possible to have a carriage return as test to
perform loop? i.e. Do While Not chr(13) gives me a type
mismatch error. I want to loop through some code (write
text to a table) until the start of the next line then I
need to continue to write to the same table but different
fields - I might be going about this wrong.
Sample Text:
01001,PHOS. LINE 2 2A PUMP,00,P2-2A-1087-C,2,316L
52,182.9428,219,CS,01-16-2003,0
The two lines combined make up one record in the table
(line one and line two contain separate fields of the
same record)
So far I have been able to import Line one of the code
appropriately into the table using the instr function to
find each field based on the comma delimiter. I don't
know how to loop to the second line.
Any help appreciated
Is it possible to have a carriage return as test to
perform loop? i.e. Do While Not chr(13) gives me a type
mismatch error. I want to loop through some code (write
text to a table) until the start of the next line then I
need to continue to write to the same table but different
fields - I might be going about this wrong.
Sample Text:
01001,PHOS. LINE 2 2A PUMP,00,P2-2A-1087-C,2,316L
52,182.9428,219,CS,01-16-2003,0
The two lines combined make up one record in the table
(line one and line two contain separate fields of the
same record)
So far I have been able to import Line one of the code
appropriately into the table using the instr function to
find each field based on the comma delimiter. I don't
know how to loop to the second line.
Any help appreciated