i use the code;
Dim TrDA As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter("SELECT TransID,MemberNo FROM Tbl_Transactions", OleDbConnection1)
Dim varinsertCommand As String
varinsertCommand = "Insert into Tbl_Transactions (MemberNo) values ('AD099')"
TrDA.InsertCommand = New OleDb.OleDbCommand(varinsertCommand, OleDbConnection1)
Dim TrDs As DataSet = New DataSet
TrDA.Fill(TrDs, "Tbl_Transactions")
Dim TrRow As DataRow = TrDs.Tables("Tbl_Transactions").Rows(10)
TrRow("memberno") = "New Transaction"
TrDA.Update(TrDs)
but i get an error
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
please assist
Dim TrDA As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter("SELECT TransID,MemberNo FROM Tbl_Transactions", OleDbConnection1)
Dim varinsertCommand As String
varinsertCommand = "Insert into Tbl_Transactions (MemberNo) values ('AD099')"
TrDA.InsertCommand = New OleDb.OleDbCommand(varinsertCommand, OleDbConnection1)
Dim TrDs As DataSet = New DataSet
TrDA.Fill(TrDs, "Tbl_Transactions")
Dim TrRow As DataRow = TrDs.Tables("Tbl_Transactions").Rows(10)
TrRow("memberno") = "New Transaction"
TrDA.Update(TrDs)
but i get an error
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
please assist