I wrote the following function that returns a DataSet but I get the following Compiler Error:
The compiler failed with error code 2000
.vb file:
Imports System.Data
Imports System.Data.OLEDB
Namespace GlobalFunctions
Class Global
Public Shared Function GetDataSet() as DataSet
Dim DBConn as OleDbConnection
Dim DBCommand As OleDbDataAdapter
Dim DSPageData as new System.Data.DataSet
DBConn = New OleDbConnection "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=path to DB;Jet OLEDB

atabase Password=password;")
DBCommand = New OleDbDataAdapter ("sqlDBConn)
DBCommand.Fill(DSPageData, "Exceptions")
GetDataSet = DSPageData
End function
End Class
End Namespace