21 | 08 | 2017

Convert Recordset to Datatable

To convert a recordset to a datatable use the function below


Imports System.Data.OleDb

    Public Function RecordSetToDataTable(ByVal objRS As ADODB.Recordset) As DataTable

        '*** Code from VisibleVisual.com ********

        Dim objDA As New OleDbDataAdapter()
        Dim objDT As New DataTable()
        objDA.Fill(objDT, objRS)
        Return objDT

    End Function


Sign up now and upload your code to the website.

Help us to continue.....
Articles View Hits
Latest Articles