I am working on a web application in vb.net:
Why am I getting ?Operation must use an updateable querry? error message at the: da.update statement of the following sub:
Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click
DS.Tables(“accounts”).Rows(Pos).BeginEdit()
DS.Tables(“accounts”).Rows(Pos)(“ID”) = txtID.Text
DS.Tables(“accounts”).Rows(Pos)(“Account_Name”) = txtName.Text
DS.Tables(“accounts”).Rows(Pos)(“Account_Reference”) = txtReference.Text
DS.Tables(“accounts”).Rows(Pos)(“SubID”) = txtSub.Text
DS.Tables(“accounts”).Rows(Pos).EndEdit()
DA.Update(DS, “Accounts”)
End Sub