Link to home
Start Free TrialLog in
Avatar of rhnguyen
rhnguyen

asked on

Import text (ASCII) file into access 97 from VB5

How can I import a Text (ASCII) file into my Access 97 table
using VB 5.0.
Avatar of tomook
tomook

The short answer: write an import routine. To help you further we will need the format of the text file and the format of the table(s) you wish to populate.
You can read data in from your text file using

'open your data base here

Open "yourfile.txt" for input as #1
   line input #1,sLine

do until eof(1)
   ..
'''   chop your string up here using mid,left right etc

   rs.addnew

 '''  adn populate your database fields

     rs.update  

   line input #1,sLine

loop

close #1
ASKER CERTIFIED SOLUTION
Avatar of cymbolic
cymbolic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial