25 | 03 | 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

Login

Sign up now and upload your code to the website.

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