Okay, i think i got a little off track. I got the import to work using the access automation. But for some reason it is only importing one record for each unique key and not importing anything else. I'm still trying to figure out why.
You said it would be better to use ADO.NET. I've...
The only problem is the file I am importing into the Access database is not a CSV file. It is a text file that is delimited by either tab or quotes!
Sorry for my ignorance on this. I am very new to this level of programming.
Thanks for the reply's. To be honest, the code I am trying is code copied from a previous post to a similar problem. I have no idea if it should or could work.
I know it is possible in VB6 using a statement similar to: App.Path.DoCmd.TransferText
would System.IO.Streamreader be similar?
Here is what I am trying to do. Hopefully someone with more knowledge than me can help.
I want to write a code that will open a text file on a local pc, and import that text file directly into an Access database.
There will be several files to import and therefore several tables in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.