Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent ADO from converting text in text file?
Message
 
To
30/08/2000 10:01:20
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00410408
Message ID:
00410773
Views:
14
>If I understand you, you can use FileSystemObject(FSO).
>Open a reference to Microsof Scripting Runtime, and then....
> Dim a As Scripting.TextStream
> Dim b As Scripting.FileSystemObject
> Set a = b.OpenTextFile("YourFile.csv")
>This, put your csv file, line by line in a TextStream Object, then you can cut line in pieces (well, pieces separated by commas) using Mid, Left, and other VBA string functions.
>Try it!!!
>I hope help you with this.

Thanks for the feedback. I was hoping to use ADO because it references the fields by their names. This method may also be faster as well (with the large text files I am using).
George
Previous
Reply
Map
View

Click here to load this message in the networking platform