|
-
Nov 19th, 2002, 08:28 AM
#1
Thread Starter
New Member
CSV Files and MS Text Driver Error
Has any one had any problems, using the Microsoft Text Driver to parse a CSV file.
This driver seems to work ok, until it hits a certain row (same row everytime), and then ADO will not get a value from a field in the row in the CSV. I have checked the watch window, and ADO is certain that the value is not there, and replaces it with NULL. If however I move this row to the beginning of the CSV file, and run the program again, it all works fine.
We have loaded the CSV file into notepad, and there appears to be no funny characters around it.
Has anyone had this problem before, or know of a fix for it.
oConnFile.Open "Driver={Microsoft Text Driver (*.txt; *.csv)};" & _
"Dbq=c:\steve\;" & _
"Extensions=asc,csv,tab,txt;"
oRsFile.CursorLocation = adUseClient
oRsFile.Open "Select * From db1.csv", oConnFile, , , adCmdText
Any help would be great.
Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|