I am having trouble deleting rows from an Access database.
Given that I know my datarowstate is unchanged, I have the following code.
myDS.myTable.Rows(me.bindingcontext(myDS, "myTable")_
.position).Delete()
adapter.update(myDS)
This works and deletes the row form the database
But when I use the following:
myDS.myTable.Rows(me.bindingcontext(myDS, "myTable")_
.position).Delete()
adapter.update(myDS.getchanges(datarowstate.deleted))
I throw an exception because there are no rows found with a datarowstate set to deleted
Does anybody have a clue to the reason.
I would really like to only update the deleted rows instead of all rows.
Thanks in advance.
Given that I know my datarowstate is unchanged, I have the following code.
myDS.myTable.Rows(me.bindingcontext(myDS, "myTable")_
.position).Delete()
adapter.update(myDS)
This works and deletes the row form the database
But when I use the following:
myDS.myTable.Rows(me.bindingcontext(myDS, "myTable")_
.position).Delete()
adapter.update(myDS.getchanges(datarowstate.deleted))
I throw an exception because there are no rows found with a datarowstate set to deleted
Does anybody have a clue to the reason.
I would really like to only update the deleted rows instead of all rows.
Thanks in advance.