A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Laura Anderson ,
A concurrency error occurs when the data you're trying to update has already been updated between the time you got the data you were changing and the time you're trying to execute your update.
It is recommended that you step through to see which step in your code is causing this data problem.
If you're using optimistic concurrency, there are two general ways to determine if a change has occurred: the version method (actual version number or datetime stamp) and the method of saving all values.
You can check out the documentation below.
https://learn.microsoft.com/en-us/previous-versions/cs6hb8k4(v=vs.100)?redirectedfrom=MSDN#concurrency-control-in-adonet-and-visual-studio
You can try the method provided in this thread:
Me.yourTableAdapter.Update(Me.yourDataSet.yourTable)
Me.yourDataSet.youTable.AcceptChanges()
Me.yourTableAdapter.Fill(Me.yourDataSet.yourTable)
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.