Posted By

JoeMaddalone on 01/31/10


Tagged


Versions (?)

Read Access to DataTable


 / Published in: VB.NET
 

  1. Function ReadAccess(ByVal sqlString As String, ByVal path As String) As System.Data.DataTable
  2. Dim strConn As String = _
  3. "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & path & ";"
  4. Dim recs As New Data.DataTable()
  5. Dim sql As New OleDbDataAdapter(sqlString, strConn)
  6. sql.Fill(recs)
  7. Return recs
  8. End Function

Report this snippet  

You need to login to post a comment.