Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
i have a tabcontrol , and each tab gathers some info the user thats regestering. when the user gets to the last tab page the collected data is passed to an object that sends the data to the database. everything is saved, but if i then go back and change some data one one of the tabs and try to update it i get a concurrency violation. i have update commands set up on all my data adapters so i dont see why the data that i saved cannot be updated when i submit the record again with slight changes. any ideas?im using c# and ms access database so there are no other users.its driving me nuts
Posted

The Problem might occure with Autoinc ( Identity ) Fields.

The Commandbuilder doesn't generate code to get these after the update,

so they might be different.

 

If there is not that much data, clear the DataTable and read it in again,

than you are save.

Posted
its not. i generate the identity field in my form so the database has nothing to do with that. i can add and delete fine, its only when i try to update. stupid concurrency violation. thanks anyway

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...