i having trouble with updating my database in msaccess, how do i use oledbcommandbuilder can someone helps me?
this is my code listing:
(i just assume that this will update my database )
con.Open()
Dim cb As New OleDb.OleDbCommandBuilder(adap)
adap.Fill(ds, "tblLogin")
ds.Tables("tblLogin").Rows(2).Delete()
cb.GetUpdateCommand()
adap.Update(ds, "tblLogin")
con.Close()
but when i try to look at my database it does not change!
thanks in advance
this is my code listing:
(i just assume that this will update my database )
con.Open()
Dim cb As New OleDb.OleDbCommandBuilder(adap)
adap.Fill(ds, "tblLogin")
ds.Tables("tblLogin").Rows(2).Delete()
cb.GetUpdateCommand()
adap.Update(ds, "tblLogin")
con.Close()
but when i try to look at my database it does not change!
thanks in advance
Last edited: