channel7 0 Newbie Poster

I am trying to learn about VB.net and am needing to open an ASCII file and show it in a datagrid. Atleast, this is what I am attempting at this point.

The code below is what I am using to allow the user to select the file they want but it will not display in the datagrid, it errors out.

You guys with the experience can hopefully spot the fault right away and correct me where I am missing it.

Thanks!
Phillip

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Try
            OpenFile.Filter = "ASCII Files (*.asc)|*.asc"
            OpenFile.ShowDialog()
            TextBox2.Text = OpenFile.FileName
        Catch ex As Exception

        End Try
                If TextBox2.Text.Length > 0 Then

            Dim connection As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
                "Data Source=" & TextBox2.Text & ";" & _
                "Extended Properties=""text;HDR=Yes;FMT=Delimited""")

            Dim adapter As New OleDb.OleDbDataAdapter("SELECT * FROM """, connection)
            Dim dt As New DataTable("10 File")
                    DataGrid2.DataSource = dt
                    adapter.Fill(dt)
        End If