G
Guest
With reference to my another thread, I can open a .txt file. But I am having problem of retriving data row by row.
The sample .txt file contains:
F1 F2 F3 F4
1a 2b 3c 4d
one two three
1 2 3 4
When I test for recordcounts, it returns 4, which is correct. I want to read the first record/row and it, then read the second and print and third and fourth etc. I use the following code.
rst1.movefirst
Do until rst1.EOF
debug.print rst1.getstring
< some logic here >
rst1.movenext
Loop
The result of GetString is that Access treats all 4 rows as one record. And Access says it is already end of file when executes MoveNext.
Appreciate advise to solve the problem.
The sample .txt file contains:
F1 F2 F3 F4
1a 2b 3c 4d
one two three
1 2 3 4
When I test for recordcounts, it returns 4, which is correct. I want to read the first record/row and it, then read the second and print and third and fourth etc. I use the following code.
rst1.movefirst
Do until rst1.EOF
debug.print rst1.getstring
< some logic here >
rst1.movenext
Loop
The result of GetString is that Access treats all 4 rows as one record. And Access says it is already end of file when executes MoveNext.
Appreciate advise to solve the problem.