I have me a dataset which i fill with values but when I use the dataAdapters.Update command my new records aren't being inserted? I am not sure what I am doing wrong. I stepped through with the debugger and the dataset has the new row in it and the new rows status is "Added"
I am at a loss
Dim mydatarow As DataRow = mydataset.myTable.newrow
mydatarow("column"
= value
mydatarow("column"
= value
mydatarow("column"
= value
mydatarow("column"
= value
'add the new row to the dataset
mydataset.myTable.Rows.Add(mydatarow)
Try
'open the database
OleDbConnection1.Open()
'add the new records to the database
OleDbDataAdaptermyAdapter.Update(mydataset)
Catch
'error stuff here
Finally
OleDbConnection1.Close()
End Try
I seem to be missing something. Thanks for the help That'l do donkey, that'l do
Mark
I am at a loss
Dim mydatarow As DataRow = mydataset.myTable.newrow
mydatarow("column"
mydatarow("column"
mydatarow("column"
mydatarow("column"
'add the new row to the dataset
mydataset.myTable.Rows.Add(mydatarow)
Try
'open the database
OleDbConnection1.Open()
'add the new records to the database
OleDbDataAdaptermyAdapter.Update(mydataset)
Catch
'error stuff here
Finally
OleDbConnection1.Close()
End Try
I seem to be missing something. Thanks for the help That'l do donkey, that'l do
![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)