Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 10th, 2007, 01:52 PM
Registered User
Join Date: Apr 2007
Location: , , USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default A parsed text file to an Access table?

I'm the newbie. Is there a simple way to put my parsed text file into an Access table? I've seen examples on how to update or add on record at a time but is there a way to do the entire table.

Coming from here:

<snip> ==== This Works Fine ====
Schema.ini in place

        Dim CString As String = _
            "Provider=Microsoft.Jet.OLEDB.4.0;" & _
            "Data Source=C:\;" & _
            "Extended Properties=""text;HDR=No;"""
        Dim TConnect As New System.Data.OleDb.OleDbConnection(CString)
        Dim da As New System.Data.OleDb.OleDbDataAdapter("Select * from 837P.txt", TConnect)
        Dim ds As New DataSet("Bananas")
        DataGridView1.DataSource = ds.Tables(0)

How do I get that ds.tables(0) into a table here?

 Dim AString As String = _
            "Provider=Microsoft.Jet.OLEDB.4.0;" & _
            "Data Source=C:\abc.mdb;"

I just can't see how to reference that DataSet(Bananas).

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A parsed text file to an Access table? josmith2 VB Databases Basics 0 May 8th, 2007 07:13 AM
text file convert to table mohiddin52 Access VBA 5 August 14th, 2006 01:10 PM
Text File-Newbie VBA Access mbeirn Access VBA 1 October 6th, 2005 07:18 AM
Importing text data to an access table sbyers_1982 VBScript 4 November 29th, 2004 01:57 PM
text file to access treasacrowe Classic ASP Databases 13 October 28th, 2004 11:02 PM

All times are GMT -4. The time now is 10:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.