Hi,
I am in the process of converting from ActiveX to ADO.NET and I ran into a samll problem. I have a function that reads throught a dataset and looks for a table and if found then deletes it.
I am not familiar with ADO.NET but I found an article on the Interent but id did not show how to open a dataset. Below is my "new" code. The problem I have is "how do I open the data set to read it".
Dim cnn As OleDbConnection
Dim dSet As DataSet
Dim tableCol As DataTableCollection
cnn = New OleDbConnection(PrepareDBConnectStr(AppDir & TKWINS_MDB))
cnn.Open()
tableCol = dSet.Tables
If tableCol.Contains("tblTempPrint") Then
dSet.Tables.Remove("tblTempPrint")
End If
cnn.Close()
cnn = Nothing
Any help would be greatly appreciative!
Thanks!!
I am in the process of converting from ActiveX to ADO.NET and I ran into a samll problem. I have a function that reads throught a dataset and looks for a table and if found then deletes it.
I am not familiar with ADO.NET but I found an article on the Interent but id did not show how to open a dataset. Below is my "new" code. The problem I have is "how do I open the data set to read it".
Dim cnn As OleDbConnection
Dim dSet As DataSet
Dim tableCol As DataTableCollection
cnn = New OleDbConnection(PrepareDBConnectStr(AppDir & TKWINS_MDB))
cnn.Open()
tableCol = dSet.Tables
If tableCol.Contains("tblTempPrint") Then
dSet.Tables.Remove("tblTempPrint")
End If
cnn.Close()
cnn = Nothing
Any help would be greatly appreciative!
Thanks!!