473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

concurrency violation

For the previous post(2 months ago), I think I had solved the problem
however, i got the same error
Form A (tableA) (after insert the new record , save it, and then amend the
record, )no concurrency violation.
however, Form A called Form B (Form B will amend the same record with
different fields content) , i save it in Form B , and the back to Form A
(amend the content) then, I got the concurrency problem again.
--
..
Nov 21 '05 #1
2 1170
when form B returns to form A, form A should reread the record from the DB,
assuming that Form B (and perhaps other users) have modified it.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:Oe**************@TK2MSFTNGP15.phx.gbl...
For the previous post(2 months ago), I think I had solved the problem
however, i got the same error
Form A (tableA) (after insert the new record , save it, and then amend the
record, )no concurrency violation.
however, Form A called Form B (Form B will amend the same record with
different fields content) , i save it in Form B , and the back to Form A
(amend the content) then, I got the concurrency problem again.
--
.

Nov 21 '05 #2
Thanks Nick.
How can I reread the data ?
I am using Dateset and , Should I refill the dataset ?

However, if I refill the dataset, i need to move to the original position of
that record, Any other method ?

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> ¼¶¼g©ó¶l¥ó·s»D:pWfCd.744269$mD.711443@attbi_s02...
when form B returns to form A, form A should reread the record from the
DB,
assuming that Form B (and perhaps other users) have modified it.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:Oe**************@TK2MSFTNGP15.phx.gbl...
For the previous post(2 months ago), I think I had solved the problem
however, i got the same error
Form A (tableA) (after insert the new record , save it, and then amend
the
record, )no concurrency violation.
however, Form A called Form B (Form B will amend the same record with
different fields content) , i save it in Form B , and the back to Form A
(amend the content) then, I got the concurrency problem again.
--
.


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Suzanne | last post by:
Hi All I'm having problems getting my data adapter to throw a concurrency exception with an INSERT command. I want to throw a concurrency exception if an attempt is made to enter a row into...
25
by: nick | last post by:
I'm having trouble updating from a datagrid. It's says "Concurrency violation: the UpdateCommand affected 0 records", though I can't see how it's related to "concurrency". I can insert and delete...
3
by: Suzanne | last post by:
Hi All I'm having problems getting my data adapter to throw a concurrency exception with an INSERT command. I want to throw a concurrency exception if an attempt is made to enter a row into...
3
by: Suzanne | last post by:
Hi All I'm having problems getting my data adapter to throw a concurrency exception with an INSERT command. I want to throw a concurrency exception if an attempt is made to enter a row into...
5
by: Vayse | last post by:
In my save code, most of items save fine. But sometimes I get a concurrency violation message. "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records." It happens on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.