I have two identical tables in Access (Customer & test). Customer contains information and Test does not. I want to pull information into datagridview1, transfer the records to datagridview2, then update that info into the Empty Test table.
I've copied my dt to dt1 and displayed that info in datagricview2. I am getting stuck when I delete a record from datagridview2 and run the update method with the info in my dt1 -- receiving a concurrency error :"Concurrency violation: the DeleteCommand affected 0 of the expected 1 records."
Any suggestions are greatly appreciated.
VB.NET
PublicClass Form1
Dim dt AsNew DataTable
Dim dt1 AsNew DataTable
Dim connStr AsString = "Provider = Microsoft.ACE.OLEDB.12.0; Data Source = test.ACCDB"Private sqlStr1 = "SELECT * FROM Customer"Private sqlStr2 = "SELECT * FROM Test"
Mayur DigheRank #1,078 · 1.8K reputationPosted Mar 14, 2011, 8:31 AM EDT
transfer Data From One Datagridview to another Datagridview
My Article:
http://www.vbdotnetheaven.com/UploadFile/ea36c5/5867/?ArticleID=2d61ef15-c0dd-45e3-99cf-55ff2341cb32