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

Data collisions

I'm having a bit of a nuisance problem with my A97 application, and I
was wondering if any of you might have any ideas on how to get around
it.

The setup: I have a large main table (call it tblBenIssue) that has
around 30 unique fields. In order to avoid over cluttering the form I
generated from that table I organized the fields into topics, and then
created separate forms for each topic (call them frmNtwks and
frmRecovery). Each of those forms links from a main form (call it
frmBenIssue) that contains the basic BenIssue header information. All
of these forms have the same datasource. Also note that ALL of these
forms have subforms (which all link to different tables).

The problem with this design is that the user has data collisions with
themselves sometimes when they edit a field in one form, close it, and
then edit a field in another form. (They get a warning MSG box that
indicates another user has modified their record before they saved it).
Apparently the same user has the same record open twice in edit mode.

I realize at this point that I should have probably broken up the main
table into several smaller tables with 1 to 1 relationships, but I'd
really rather avoid that at this point as I'd have to change a lot of
other things to accommodate this.

So, I've been working on trying to avoid the problem of a single user
having the same record open in edit mode twice with VBA. I thought that
executing a save record command on the form open buttons (before the
docmd.openform) and on the form close events would take care of the
problem. Unfortunately this is not the case (although it does seem to
make it occur less often).

I'm wondering if there is something else I could try to force a record
out of edit mode so that the update collision does not occur.

Any ideas or comments would be appreciated.

Thanks!

Nov 17 '05 #1
2 2037
Br
An***********@bcbsmn.com wrote:
I'm having a bit of a nuisance problem with my A97 application, and I
was wondering if any of you might have any ideas on how to get around
it.

The setup: I have a large main table (call it tblBenIssue) that has
around 30 unique fields. In order to avoid over cluttering the form I
generated from that table I organized the fields into topics, and then
created separate forms for each topic (call them frmNtwks and
frmRecovery). Each of those forms links from a main form (call it
frmBenIssue) that contains the basic BenIssue header information. All
of these forms have the same datasource. Also note that ALL of these
forms have subforms (which all link to different tables).

The problem with this design is that the user has data collisions with
themselves sometimes when they edit a field in one form, close it, and
then edit a field in another form. (They get a warning MSG box that
indicates another user has modified their record before they saved
it). Apparently the same user has the same record open twice in edit
mode.
Use a simpler design.

Use one form but use a TAB control or something to simplify the number
of fields on screen at one time. Or use one long form with page dividers
and use buttons to navigate between pages. Or close all the forms but
the current one so you only have one open at a time.
I realize at this point that I should have probably broken up the main
table into several smaller tables with 1 to 1 relationships, but I'd
really rather avoid that at this point as I'd have to change a lot of
other things to accommodate this.
I don't think there is any need for that here.
So, I've been working on trying to avoid the problem of a single user
having the same record open in edit mode twice with VBA. I thought
that executing a save record command on the form open buttons (before
the docmd.openform) and on the form close events would take care of
the problem. Unfortunately this is not the case (although it does
seem to make it occur less often).

I'm wondering if there is something else I could try to force a record
out of edit mode so that the update collision does not occur.


Simply don't open the same recordset more than once at a time. Change
your form design.
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 17 '05 #2
Thanks for the ideas Bradley. Completely closing the form rather than
leaving it open in the background did the trick. I don't know why I
didn't think of that.

Nov 17 '05 #3

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

Similar topics

5
by: Will McGugan | last post by:
Hi, I'm accumulating a number of small functions, which I have sensibly put in a single file called 'util.py'. But it occurs to me that with such a generic name it could cause problems with...
6
by: Peter Ammon | last post by:
Let's say I need to swap two int values frequently. I would write a macro: #define swap(int a, int b) \ do { \ int temp = (a); \ (a) = (b); \ (b) = temp; \ } while (0)
6
by: Nels Olsen | last post by:
Our company is rewriting our product in .NET. The old product is in PowerBuilder, which is heavy on Hungarian notation. We are approaching the time where we have to finalize naming conventions for...
12
by: Divick | last post by:
Hi all, does any one know of any data structure in which I can search the key and value equally fast? Though I could use hashes, but I can only search in constant time on key but not on value. If...
14
by: ToddLMorgan | last post by:
Summary: How should multiple (related) projects be arranged (structured) and configured so that the following is possible: o Sharing common code (one of the projects would be a "common" project...
9
by: David Harris | last post by:
Ok, so I'm semi-new to .NET, having done everything manually with SQL code back in VB6. So before I program this up completely manually again, I thought I'd ask for better ways to think through...
17
by: Timothy.Rybak | last post by:
Hello all, This is my first attempt at an application, so kid gloves are appreciated. I need to make a very simple form that only has a few elements. One is TraceCode - a text field that is...
5
by: Markus Dehmann | last post by:
Do I have to handle hash collisions in a hash_set myself? I did a test in which I use find() to look for objects in a hash_set. These objects are definitely not contained, but find() sometimes...
2
by: John Doe | last post by:
Hi, I am currently developping a software where items that will be inserted into a graphical widget ListCtrl are first defined in static array as shown below : enum TUiContext {...
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: 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...
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
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,...
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
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
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...

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.