|
-
Mar 9th, 2011, 07:32 AM
#1
Thread Starter
Junior Member
VB 2010 how to import txt to access
hi.
i need to import text file into access database...
i`m using oledb.
i didnt find anything on the web... in VB.NET
thanks
-
Mar 9th, 2011, 07:39 AM
#2
Re: VB 2010 how to import txt to access
 Originally Posted by caba11
hi.
i need to import text file into access database...
i`m using oledb.
i didnt find anything on the web... in VB.NET
thanks
I don't think you searched at all, because there are millions of examples over the Internet.
Anyway, what particular part of the task you find difficult?
Before you begin to write any code though, I should point out that MS Access has native import functions and allows importing of txt files without any programming. Perhaps this option will suit you better.
If not, then your program should do the following:
- Open a connection to the db
- Open the text file for reading
- Read a line from the file.
- Parse and split the values if necessary.
- Execute a query which puts the data values from step 4 into the db table
- Repeat from step 3 until the end of the file
- Close the file
- Close the db connection
Now, which step of the above you need help with?
-
Mar 9th, 2011, 11:52 AM
#3
Thread Starter
Junior Member
Re: VB 2010 how to import txt to access
thanks for reply.
i need to do it in my program...
i gonna try it like you said....
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|