HeavenCore
Well-known member
Hi i have a datatable which is generated by choosing options (so the number of columns and rows returned will always be different) the data is coming from an ACT! sage database, and needs saving into an already existing mdb database (will obviously need the new table to created in the mdb automatically too)
kinda struggling how to do this? any ideas?
Populating the dataset with VB.Net
kinda struggling how to do this? any ideas?
Populating the dataset with VB.Net
VB.NET:
Dim myDataReader As OleDbDataReader = Nothing
Dim myOleDbConnection As OleDbConnection = New OleDbConnection("Provider=ACTOLEDB.1;Data Source=L:\eVentura.pad;User ID=""random"";Password=random,je")
Dim myOleDbCommand As OleDbCommand = New OleDbCommand("SELECT * FROM VRP_Contact", myOleDbConnection)
myOleDbConnection.Open
myDataReader = myOleDbCommand.ExecuteReader
Dim ds As DataSet = New DataSet
ds.Load(myDataReader)