PC Review


Reply
Thread Tools Rate Thread

concurrency violation error

 
 
Agnes
Guest
Posts: n/a
 
      22nd Nov 2004
I got a simple form and using databinding manager to do the add new
Now , my big trobule is . I can update the 'addnew' record, However, after I
new the record, and then amend it , it got concurrency violation error, (I
can solve it but I need to clear the dataset and fill in again, and I think
it is not the solution)
Please help

--
..


 
Reply With Quote
 
 
 
 
Agnes
Guest
Posts: n/a
 
      22nd Nov 2004
I should post my code here:-
I am using Databinding manager to bind the textbox in the form.
'New
bmInvoice.endcurrent()
bmInvoice.addnew()
'Save...
if dsInvoice.haschanges() then
daInvoice.update(dsInvoice,"invoicetable")
dsInvoice.update()
end if

'Modify
bmInvoice.endcurrent()
'Save.....
if dsInvoice.haschanges() then
daInvoice.update(dsInvoice,"invoicetable")
dsInvoice.update()
end if

Now , I can save the record (in new mode) , however, once I modify it
immedately and then save, I got 'concurrency violation ; update command
affect 0 records' ?
Please help

--
..
"Agnes" <(E-Mail Removed)> 在郵件
news:(E-Mail Removed) 中撰寫...
> I got a simple form and using databinding manager to do the add new
> Now , my big trobule is . I can update the 'addnew' record, However, after

I
> new the record, and then amend it , it got concurrency violation error, (I
> can solve it but I need to clear the dataset and fill in again, and I

think
> it is not the solution)
> Please help
>
> --
> .
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      22nd Nov 2004
Agnes,

I think your code is not needed only to tell if you use "autokey".

Before you think it, that is when you get these problems and I have no
"better" solution than the one you use.

Cor

"Agnes" <(E-Mail Removed)>


>I should post my code here:-
> I am using Databinding manager to bind the textbox in the form.
> 'New
> bmInvoice.endcurrent()
> bmInvoice.addnew()
> 'Save...
> if dsInvoice.haschanges() then
> daInvoice.update(dsInvoice,"invoicetable")
> dsInvoice.update()
> end if
>
> 'Modify
> bmInvoice.endcurrent()
> 'Save.....
> if dsInvoice.haschanges() then
> daInvoice.update(dsInvoice,"invoicetable")
> dsInvoice.update()
> end if
>
> Now , I can save the record (in new mode) , however, once I modify it
> immedately and then save, I got 'concurrency violation ; update command
> affect 0 records' ?
> Please help
>
> --
> .
> "Agnes" <(E-Mail Removed)> 在郵件
> news:(E-Mail Removed) 中撰寫...
>> I got a simple form and using databinding manager to do the add new
>> Now , my big trobule is . I can update the 'addnew' record, However,
>> after

> I
>> new the record, and then amend it , it got concurrency violation error,
>> (I
>> can solve it but I need to clear the dataset and fill in again, and I

> think
>> it is not the solution)
>> Please help
>>
>> --
>> .
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's causing ADO error: "Concurrency violation: the DeleteCommand affected 0 records" sherifffruitfly Microsoft ADO .NET 3 2nd Nov 2006 12:39 AM
What's causing ADO error: "Concurrency violation: the DeleteCommand affected 0 records" sherifffruitfly Microsoft C# .NET 0 31st Oct 2006 09:39 PM
how to clear a concurrency violation error - grid editing? Jerry Microsoft VB .NET 4 3rd May 2004 10:01 PM
Updating Access table through OleDb works but Odbc give Concurrency Violation error?! Kenneth Baltrinic Microsoft ADO .NET 1 2nd Apr 2004 11:55 PM
Concurrency violation! Lance Microsoft ADO .NET 1 29th Mar 2004 01:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 AM.