Jump to content

Recommended Posts

Posted

Hi friends,

Is there any faster method to import information from a text file to an Access data base, other than, reading each line of text file, splitting it and inserting into the table?

Regards,

Pooja.

Posted (edited)

Importing it using the import feature on Access.

I'm sure there is an ADO method, but I do not know how...

Edited by foster74
Posted (edited)

Pooja, You can using the ADO text driver.

If your text file is CSV or other delimited file you could try using this as the connection string:

"Driver={Microsoft Text Driver (*.txt;*.csv)};Dbq=" & $FileLocationAndName & ";Extensions=asc,csv,tab,txt;"

Edit: to correct Conn. String.

Thanks for the reply.

Is there any ADO method for doing that directly from my script?

Pooja.

Edited by DaRam

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...