Code:
[Visual Basic] Public Function SelectOleDbSrvRows(dataSet As DataSet, connection As String, query As String) As DataSet Dim conn As New OleDbConnection(connection) Dim adapter As New OleDbDataAdapter() adapter.SelectCommand = new OleDbCommand(query, conn) adapter.Fill(dataset) Return dataset End Function
Leave a comment: