C Cor Ligthert [MVP] May 8, 2006 #2 Ad, If you look two messages below you see my answer on that. Cor
A ad May 8, 2006 #3 Thanks, But I can't find your answer. Cor Ligthert said: Ad, If you look two messages below you see my answer on that. Cor Click to expand...
Thanks, But I can't find your answer. Cor Ligthert said: Ad, If you look two messages below you see my answer on that. Cor Click to expand...
C Cor Ligthert [MVP] May 8, 2006 #4 Do you not see a message from Tomb? ad said: Thanks, But I can't find your answer. Click to expand...
Do you not see a message from Tomb? ad said: Thanks, But I can't find your answer. Click to expand...
P Paul Clement May 8, 2006 #5 ¤ I have a .csv file. ¤ How can I read it into DataTable? ¤ Dim TextConnectionString As String TextConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & "e:\My Documents\TextFiles" & ";" & _ "Extended Properties=""Text;HDR=NO;""" Dim TextConn As New System.Data.OleDb.OleDbConnection(TextConnectionString) TextConn.Open() Dim da As New System.Data.OleDb.OleDbDataAdapter("Select * from test.csv", TextConn) Dim ds As DataSet = New DataSet("CSVFiles") da.Fill(ds, "TestFile") '... '... TextConn.Close() Paul ~~~~ Microsoft MVP (Visual Basic)
¤ I have a .csv file. ¤ How can I read it into DataTable? ¤ Dim TextConnectionString As String TextConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & "e:\My Documents\TextFiles" & ";" & _ "Extended Properties=""Text;HDR=NO;""" Dim TextConn As New System.Data.OleDb.OleDbConnection(TextConnectionString) TextConn.Open() Dim da As New System.Data.OleDb.OleDbDataAdapter("Select * from test.csv", TextConn) Dim ds As DataSet = New DataSet("CSVFiles") da.Fill(ds, "TestFile") '... '... TextConn.Close() Paul ~~~~ Microsoft MVP (Visual Basic)