I am mildly proficient at VB6, but am completely new to .net hence my question
I have been sent a program that basically collects some data from somewhere and sticks it into a form
I want to take the data in these tables and stick them into MS Access so I can keep an historical record of the data.
I have copied this from a forum so i can connect to the database..
Can anyone help me with how to update the database, whether it is possible to send the dataset over in one hit, or more likely send it over row by row after retreiving it from the dataset.
Thanks in advance
John
I have been sent a program that basically collects some data from somewhere and sticks it into a form
Dim dsOdds As DataSet = GetSqlDataSetBySP("spGet", Me.txtConnString.Text)
If (dsOdds.Tables.Count = 2) Then
Me.dgvOdds.DataSource = dsOdds.Tables(0)
Me.dgvLastUpdate.DataSource = dsOdds.Tables(1)
End If
I want to take the data in these tables and stick them into MS Access so I can keep an historical record of the data.
I have copied this from a forum so i can connect to the database..
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=c:\SBBOdds.mdb"
Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Can anyone help me with how to update the database, whether it is possible to send the dataset over in one hit, or more likely send it over row by row after retreiving it from the dataset.
Thanks in advance
John
Last edited: