Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer Files

Status
Not open for further replies.

emily23

Technical User
Jul 21, 2007
5
GB
Hi everyone! I primarily work with embedded visual basic, but I currently have to tranfer files into a database using VB 6. Does snyone have the statement I would use to pull fields from a particular file and send them into a predesigned database? Thanks in advance!
Emily
 
That depends on the format of the file (is it tab delimited? is every record on only one line?) if this is the case you should try using the FileSystemObject to open the file and read line by line (loop) and use the "Split" function to put the fields in an array (Split(line_text, delimiter)) from here you can construct your SQL statment and execute it.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top