473,396 Members | 2,147 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,396 software developers and data experts.

Re: Data Shifting Between Records

hey, what's up.............................
"Neil" <no****@nospam.netwrote in message
news:8Y******************@newssvr13.news.prodigy.n et...
Thanks for your reply, Gordon. But, unfortunately, there is no code that
updates these fields. They're simply bound controls, and are managed by
the control and the ODBC driver.

Furthermore, the fact that the contents of the control are replaced by the
content of a previously saved record in that control indicates that it
can't be user error. These controls hold multiple sentences. For the user
to be able to retype exactly what was in another record, after already
typing what was in there originally, would be extremely unlikely.

I have code that copies the entire content of the record to a separate
history table whenever the form AfterUpdate event is run. Looking at the
history table, I see exactly what the user is talking about. There will be
multiple entries with the correct paragraph of text in the field, and
then, boom!, all of a sudden, out of nowhere, the contents of the field is
replaced, character-for-character, with the contents of another record for
the same field. If the user had done this, they would have to, after
typing the paragraph in the first place, all of a sudden decide to replace
it wit the wrong paragraph of text, and then replicate that other record's
text perfectly. Extremely unlikely.

Since this is the rich textbox control by FMS, and these types of controls
tend to get a little flaky at times, I'm still believing there's something
with the control itself. Since it happens infrequently, and so far only in
conjuction with an error, I see it as a hiccup within the control,
especially since, as noted above, I don't have any code that updates these
controls, and user cause is extremely unlikely.

The fact that no one responding to this thread has ever encountered
anything like this is comforting. But, at the same time, it leaves me with
few ideas as to how to address it. Right now I'm applying the KFC
("keeping fingers crossed") approach. :-(

Thanks,

Neil
"gllincoln" <gl*******@live.comwrote in message
news:31**********************************@microsof t.com...
>Hi Neil,

Just reading through this thread - it's a near certainty that this is
either user error or a coding issue. If you have a one to one
relationship and the field that is 'changing' isn't part of the
relationship, then we can rule out relationship integrity update/cascade.

I've never seen a control change the contents of a field it wasn't bound
to - but I have seen:
Controls that the programmer thought were bound to one field, that were
actually bound to another field.
Plenty of code that was at fault. (including my own one in a while)

Look very, very closely at all of the events and related code and any
update or append queries that involve a reference to controls bound to
either of the "Joe" fields and any variable used to store or update these
control values - it's extremely likely that the problem is in there...
somewhere.

Hope this helps....
Gordon



"Neil" <no****@nospam.netwrote in message
news:mI******************@newssvr13.news.prodigy. net...
>>>
"Rick Brandt" <ri*********@hotmail.comwrote in message
news:yg****************@nlpi070.nbdc.sbc.com.. .
Neil wrote:
"Jeff Boyce" <no******@nonsense.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
>Neil
>>
>I haven't run across that issue before.
>>
>Have you tried searching on-line?
>>
>
Yes; couldn't find anything.

Does your SQL server table have a primary key defined or did you build
a local index for doing updates? What you are describing is exactly
what can happen if you define a local index for doing updates and
choose a field or combination of fields that are actually NOT unique in
the table. Updates end up affecting multiple rows on the server.
Yes, there's a primary key. This particular form consists of two tables
having a one-to-one relationship, the second table containing primarily
the rich text fields. The primary key of the second table is the
foreign key of first table.

Again, note that when this happens, it's only one or two fields that are
affected, not the entire record. And it only happens in conjunction with
some sort of error.


Jun 27 '08 #1
2 2634
?

"Ashley" <as***********@myspace.comwrote in message
news:uD**************@TK2MSFTNGP04.phx.gbl...
hey, what's up.............................
"Neil" <no****@nospam.netwrote in message
news:8Y******************@newssvr13.news.prodigy.n et...
>Thanks for your reply, Gordon. But, unfortunately, there is no code that
updates these fields. They're simply bound controls, and are managed by
the control and the ODBC driver.

Furthermore, the fact that the contents of the control are replaced by
the content of a previously saved record in that control indicates that
it can't be user error. These controls hold multiple sentences. For the
user to be able to retype exactly what was in another record, after
already typing what was in there originally, would be extremely unlikely.

I have code that copies the entire content of the record to a separate
history table whenever the form AfterUpdate event is run. Looking at the
history table, I see exactly what the user is talking about. There will
be multiple entries with the correct paragraph of text in the field, and
then, boom!, all of a sudden, out of nowhere, the contents of the field
is replaced, character-for-character, with the contents of another record
for the same field. If the user had done this, they would have to, after
typing the paragraph in the first place, all of a sudden decide to
replace it wit the wrong paragraph of text, and then replicate that other
record's text perfectly. Extremely unlikely.

Since this is the rich textbox control by FMS, and these types of
controls tend to get a little flaky at times, I'm still believing there's
something with the control itself. Since it happens infrequently, and so
far only in conjuction with an error, I see it as a hiccup within the
control, especially since, as noted above, I don't have any code that
updates these controls, and user cause is extremely unlikely.

The fact that no one responding to this thread has ever encountered
anything like this is comforting. But, at the same time, it leaves me
with few ideas as to how to address it. Right now I'm applying the KFC
("keeping fingers crossed") approach. :-(

Thanks,

Neil
"gllincoln" <gl*******@live.comwrote in message
news:31**********************************@microso ft.com...
>>Hi Neil,

Just reading through this thread - it's a near certainty that this is
either user error or a coding issue. If you have a one to one
relationship and the field that is 'changing' isn't part of the
relationship, then we can rule out relationship integrity
update/cascade.

I've never seen a control change the contents of a field it wasn't bound
to - but I have seen:
Controls that the programmer thought were bound to one field, that were
actually bound to another field.
Plenty of code that was at fault. (including my own one in a while)

Look very, very closely at all of the events and related code and any
update or append queries that involve a reference to controls bound to
either of the "Joe" fields and any variable used to store or update
these control values - it's extremely likely that the problem is in
there... somewhere.

Hope this helps....
Gordon



"Neil" <no****@nospam.netwrote in message
news:mI******************@newssvr13.news.prodigy .net...

"Rick Brandt" <ri*********@hotmail.comwrote in message
news:yg****************@nlpi070.nbdc.sbc.com. ..
Neil wrote:
>"Jeff Boyce" <no******@nonsense.comwrote in message
>news:%2****************@TK2MSFTNGP03.phx.gbl. ..
>>Neil
>>>
>>I haven't run across that issue before.
>>>
>>Have you tried searching on-line?
>>>
>>
>Yes; couldn't find anything.
>
Does your SQL server table have a primary key defined or did you build
a local index for doing updates? What you are describing is exactly
what can happen if you define a local index for doing updates and
choose a field or combination of fields that are actually NOT unique
in the table. Updates end up affecting multiple rows on the server.
>

Yes, there's a primary key. This particular form consists of two tables
having a one-to-one relationship, the second table containing primarily
the rich text fields. The primary key of the second table is the
foreign key of first table.

Again, note that when this happens, it's only one or two fields that
are affected, not the entire record. And it only happens in conjunction
with some sort of error.




Jun 27 '08 #2
Dell all our best deals
Dell toutes nos meilleurs offres
Dell alle unsere Top-Angebote
Dell todas nuestras mejores ofertas
Dell alle vores bedste tilbud
Dell kaikki parhaamme käsitellään
Dell tutte le nostre migliori offerte
???????????
???????????
?? ?? ??? ??
Dell ??? ?? ???? ?? ???? ???????

http://www1.euro.dell.com/content/de...676&lid=137598


"Ashley" <as***********@myspace.coma écrit dans le message de
news:uD**************@TK2MSFTNGP04.phx.gbl...
hey, what's up.............................
"Neil" <no****@nospam.netwrote in message
news:8Y******************@newssvr13.news.prodigy.n et...
>Thanks for your reply, Gordon. But, unfortunately, there is no code that
updates these fields. They're simply bound controls, and are managed by
the control and the ODBC driver.

Furthermore, the fact that the contents of the control are replaced by
the content of a previously saved record in that control indicates that
it can't be user error. These controls hold multiple sentences. For the
user to be able to retype exactly what was in another record, after
already typing what was in there originally, would be extremely unlikely.

I have code that copies the entire content of the record to a separate
history table whenever the form AfterUpdate event is run. Looking at the
history table, I see exactly what the user is talking about. There will
be multiple entries with the correct paragraph of text in the field, and
then, boom!, all of a sudden, out of nowhere, the contents of the field
is replaced, character-for-character, with the contents of another record
for the same field. If the user had done this, they would have to, after
typing the paragraph in the first place, all of a sudden decide to
replace it wit the wrong paragraph of text, and then replicate that other
record's text perfectly. Extremely unlikely.

Since this is the rich textbox control by FMS, and these types of
controls tend to get a little flaky at times, I'm still believing there's
something with the control itself. Since it happens infrequently, and so
far only in conjuction with an error, I see it as a hiccup within the
control, especially since, as noted above, I don't have any code that
updates these controls, and user cause is extremely unlikely.

The fact that no one responding to this thread has ever encountered
anything like this is comforting. But, at the same time, it leaves me
with few ideas as to how to address it. Right now I'm applying the KFC
("keeping fingers crossed") approach. :-(

Thanks,

Neil
"gllincoln" <gl*******@live.comwrote in message
news:31**********************************@microso ft.com...
>>Hi Neil,

Just reading through this thread - it's a near certainty that this is
either user error or a coding issue. If you have a one to one
relationship and the field that is 'changing' isn't part of the
relationship, then we can rule out relationship integrity
update/cascade.

I've never seen a control change the contents of a field it wasn't bound
to - but I have seen:
Controls that the programmer thought were bound to one field, that were
actually bound to another field.
Plenty of code that was at fault. (including my own one in a while)

Look very, very closely at all of the events and related code and any
update or append queries that involve a reference to controls bound to
either of the "Joe" fields and any variable used to store or update
these control values - it's extremely likely that the problem is in
there... somewhere.

Hope this helps....
Gordon



"Neil" <no****@nospam.netwrote in message
news:mI******************@newssvr13.news.prodigy .net...

"Rick Brandt" <ri*********@hotmail.comwrote in message
news:yg****************@nlpi070.nbdc.sbc.com. ..
Neil wrote:
>"Jeff Boyce" <no******@nonsense.comwrote in message
>news:%2****************@TK2MSFTNGP03.phx.gbl. ..
>>Neil
>>>
>>I haven't run across that issue before.
>>>
>>Have you tried searching on-line?
>>>
>>
>Yes; couldn't find anything.
>
Does your SQL server table have a primary key defined or did you build
a local index for doing updates? What you are describing is exactly
what can happen if you define a local index for doing updates and
choose a field or combination of fields that are actually NOT unique
in the table. Updates end up affecting multiple rows on the server.
>

Yes, there's a primary key. This particular form consists of two tables
having a one-to-one relationship, the second table containing primarily
the rich text fields. The primary key of the second table is the
foreign key of first table.

Again, note that when this happens, it's only one or two fields that
are affected, not the entire record. And it only happens in conjunction
with some sort of error.



Aug 18 '08 #3

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

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
4
by: Tim Smith | last post by:
I have a project that requires logging of data to a file. The file is supposed to hold records until it reaches a certain size, then start shifting the oldest records out as the new data is being...
2
by: salsipius | last post by:
Can someone please help me clarify the below code. I think the shifting has to do with converting datatypes and/or loss of data but am not really clear on the details, could you help shed some...
8
by: Eric.Medlin | last post by:
I am reading in 1bit data to a buffer that contains over 30000 bits and I would like to beable to bitshift the entire buffer and AND and OR it with other buffers of the same size. I though I could...
10
by: krunalb | last post by:
Hi, I am trying to shift unsigned long long value by 64 bits and this is what i get #include <stdio.h> int main() { unsigned short shiftby= 64;
20
by: Charles Sullivan | last post by:
I understand different processor hardware may store the bits in a byte in different order. Does it make a difference in C insofar as bit-shifting unsigned char variables is concerned? E.g, if I...
4
by: Neil | last post by:
I previously posted about data shifting between records in my Access 2000 MDB with a SQL Server 7 back end, using ODBC linked tables. Every once in a while, data from one record mysteriously...
4
by: Neil | last post by:
Is there a problem with stability when one uses too many text (memo) fields? I'm having a problem with data from one record occasionally ending up in another record, though apparently not through...
0
by: hancjiao | last post by:
"Neil" <nospam@nospam.netдÈëÏûÏ¢ÐÂÎÅ:7Tquj.11650$Ej5.10391@newssvr29.news.prodigy.net...
5
by: _dee | last post by:
I'm working on a port of a legacy app originally written in C. Data was compacted into bit fields. Are there any sites or books that cover optimized handling of this type of data? I'd need to...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.