Click here to Skip to main content
14,239,876 members
Rate this:
Please Sign up or sign in to vote.
See more:
i use this code to save access database:


but it always give me errors when i save the database
one of the errors:
Concurrency violation: the DeleteCommand affected 0 of the expected 1 records.

please give me solution to save access database

What I have tried:

Updated 10-Jul-19 8:57am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

The .EndEdit() must come before the .Update() command, see: c# - How to update with TableAdapter? - Stack Overflow[^]
If this still does not work please provide more information about how you use the Access database in your solution, connection string and relevant code.
Maciej Los 10-Jul-19 15:14pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100