473,698 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Shifting Between Records - 2

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 appears in another record. This
incident happened again, this time adding a new wrinkle to the situation.

There are two tables -- TableA and TableB -- which have a one-to-one
relationship with each other, joined on TableA's autonumber primary key
field to TableB's long int primary key field.

And there are two forms that are used by the users. Form1 is bound to TableA
alone. Form2 is bound to TableA joined with TableB.

TableB is the table that has the problem with data shifting. However, in the
most recent episode of the data shifting, the record in question was only
edited using Form1 (which is only bound to TableA), and not Form2 (which is
bound to both TableA and TableB). Thus, it would not have been possible for
the data to shift through user intervention, or even though anything within
the form, but only through some other mechanism.

A record is created by the user clicking a New button and completing a few
fields. Code in the back end then creates the TableA record with the
user-provided data, getting the new autonumber value. It then creates a
sister record in TableB, using the new autonumber value as the PK for the
TableB record, and completing two fields in TableB that are required, based
on user-entered data.

In this case, as noted, after the record was created, according to the
history logs, the user only used Form1, which only accesses TableA. Yet
somehow the two fields that were completed by default when the TableB record
was created in the back end were changed to contain data from a different
record. Since TableB was never accessed by the user of either record, I
don't see how that could be possible except through some glitch in the back
end or ODBC driver.

TableB It contains 20 memo type fields ("text" type in SQL Server) that are
used to store RTF data, along with about 30 or so other fields. It could be
that the large number of memo fields is creating a problem?

Any thoughts or ideas would be appreciated.

Thanks!

Neil
Mar 22 '08 #1
4 1865
Neil wrote:
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 appears in
another record. This incident happened again, this time adding a new
wrinkle to the situation.
There are two tables -- TableA and TableB -- which have a one-to-one
relationship with each other, joined on TableA's autonumber primary
key field to TableB's long int primary key field.

And there are two forms that are used by the users. Form1 is bound to
TableA alone. Form2 is bound to TableA joined with TableB.

TableB is the table that has the problem with data shifting. However,
in the most recent episode of the data shifting, the record in
question was only edited using Form1 (which is only bound to TableA),
and not Form2 (which is bound to both TableA and TableB). Thus, it
would not have been possible for the data to shift through user
intervention, or even though anything within the form, but only
through some other mechanism.
A record is created by the user clicking a New button and completing
a few fields. Code in the back end then creates the TableA record
with the user-provided data, getting the new autonumber value. It
then creates a sister record in TableB, using the new autonumber
value as the PK for the TableB record, and completing two fields in
TableB that are required, based on user-entered data.

In this case, as noted, after the record was created, according to the
history logs, the user only used Form1, which only accesses TableA.
Yet somehow the two fields that were completed by default when the
TableB record was created in the back end were changed to contain
data from a different record. Since TableB was never accessed by the
user of either record, I don't see how that could be possible except
through some glitch in the back end or ODBC driver.

TableB It contains 20 memo type fields ("text" type in SQL Server)
that are used to store RTF data, along with about 30 or so other
fields. It could be that the large number of memo fields is creating
a problem?
Any thoughts or ideas would be appreciated.
You have, based on your description, an unusual and rather convoluted method
for entering your records and simultaneously suffer from an unusual and
convoluted problem with your data.

I suggest that eliminating the former might also eliminate the latter.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Mar 22 '08 #2
You have, based on your description, an unusual and rather convoluted
method
for entering your records and simultaneously suffer from an unusual and
convoluted problem with your data.

I suggest that eliminating the former might also eliminate the latter.
What, specifically, is "unusual and convoluted"? The user enters a few
required pieces of information; and records are created in the back end via
stored procedure in both the main and sister table, which share a one-to-one
relationship. What's convoluted about that?

Furthermore, the problem happens long after the record is created. At some
point in the editing process some data (though not all) in one record is
replaced with data in another record. This happens well after the records
are created.
Mar 23 '08 #3
"Neil" <no****@nospam. netwrote in
news:B0******** ***********@new ssvr14.news.pro digy.net:
In other words, though the forms used in editing these records didn't
touch TableB, the records in TableB were affected. Their only
connection to the TableA records that were affected is the one-to-one
relationship.
I suspect that you can become mildly famous in the db world if you strip
everything to the bare essentials and post the (small!) db and (small!)
front end that will replicate this unusual behaviour.
I would certainly like to observe this phenomenon in action, and examine
the db and front end where it occurs.
I'm willing to host the download on my site if you can whip one up.
(I don't have the whole thread in front of me here so apologies if this has
been discussed already.)
Mar 23 '08 #4

"lyle fairfield" <ly******@yah00 .cawrote in message
news:Xn******** *************** *@216.221.81.11 9...
"Neil" <no****@nospam. netwrote in
news:B0******** ***********@new ssvr14.news.pro digy.net:
>In other words, though the forms used in editing these records didn't
touch TableB, the records in TableB were affected. Their only
connection to the TableA records that were affected is the one-to-one
relationship .

I suspect that you can become mildly famous in the db world if you strip
everything to the bare essentials and post the (small!) db and (small!)
front end that will replicate this unusual behaviour.
I would certainly like to observe this phenomenon in action, and examine
the db and front end where it occurs.
I'm willing to host the download on my site if you can whip one up.
(I don't have the whole thread in front of me here so apologies if this
has
been discussed already.)
You and me both. I'd like nothing better than to be able to replicate this
behavior. As it is now, I'm left with guesses when the user contacts me and
says that they completed certain fields, and then, when they went back to
the record sometime later, the record had data in those field from another
record -- usually one that was created a little earlier than the one with
the problem. This happens about once or twice a month. Being able to
replicate it would be wonderful.

And, again, in case you missed it, there are two tables with a one-to-one
relationship, and two forms -- one that is bound to only one of the tables,
and another that is bound to both. According to the history logs, it was the
form that is only bound to one table (the one without the problem) that was
used both with the problem record and with the record the wrong data came
from. So the table in which this occurred was not even a part of the form
that was used with these records. And no one accesses the tables themselves
except me.
Mar 23 '08 #5

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

Similar topics

16
3027
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 example dsParts.xsd and including that in the data tier. I then will create a class that looks like this Public Class CPart Inherits dsParts
4
1426
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 written to the file. Anyone know where to find sample code to accomplish this? Thanks
2
2058
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 light please? // Allocate array for( i = 0; i < Length; i++ ) { //pArray_00 is a BYTE Array -- Here a cast is used because
8
4898
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 use the stl bitset class, but I cannot find a way to load the buffer into the bitset. I have been trying with this test program (with the size scaled down to 1024 bits) to load a buffer into the bitset, but prints out all zeros. #include...
10
10691
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
2506
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 have unsigned char x = 1; is it always true that (x << 1) == 2 (x << 2) == 4 etc?
4
2290
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 any user interaction. I'm using SQL 7 and accessing the tables through the ODBC driver. There are two tables with a one-to-one relationship -- TableA and TableB. TableB is the one that's having this occasional problem. TableB has about 30 text...
0
195
by: hancjiao | last post by:
"Neil" <nospam@nospam.netдÈëÏûÏ¢ÐÂÎÅ:7Tquj.11650$Ej5.10391@newssvr29.news.prodigy.net...
5
1875
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 develop optimized functions for reading and writing, and given the volume of source, I don't want to end up with pages of obscure code. (Surprisingly, the original C was pretty clear).
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9155
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9018
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7711
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.