Home > Net >  The DataSet object cache line data are added, how to submit to the database?
The DataSet object cache line data are added, how to submit to the database?

Time:10-11

The DataSet. AddwordRow can only be written to the cache, but did not submit to the database? How to modify, thank you!
Private Sub BTNWriteDB_Click (sender As Object, As EventArgs e) Handles BTNWriteDB. Click
'to write database
With AnswerDataSet1. Word
AddwordRow (themno:=ThemId, myid:=myid, mysubid:=mysubid, secid:=secid, pageid:=pageid, paraghid:=paraghid, stylename:=StyName, searchtext:=searchtext, myvalue:=TXTValue. Text, score:=CMBScore. SelectedIndex)
End With
AnswerDataSet1. Word. The AcceptChanges ()

MessageBox. Show (" write successful ")
End Sub
  • Related