473,659 Members | 2,987 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error - The data has been changed

31 New Member
Afternoon all,

Cheers to anyone who can help! So far this forum has been a big lifeline to me!!

I believe this to be the last hurdle before my database is complete!

Problem - I have a main form with 3 subforms. Each subform is hidden until it is made visible through use of a check box (code has been written to only allow one box to be visible at any one time). These had been working perfectly but all of a sudden I have begun to get the error message

"The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes"

This is hard to believe as i am the only person using the database. I have found a few articles relating to this but no-one ever suggests a possible fix for this problem.

The Microsoft site says to fix the problem to add "Me.Parent.Requ ery" to the AfterUpdate event on the subforms. This does work but now when you try to change subforms using the check boxes, the 1st click on a check box appears to trigger the AfterUpdate but then you have to re-click the same check box to acctually change forms.

i.e. to change to Travel Subform from Cars you have to click the Travel Check Box, wait a second or two, and then click the Travel Check Box again to actually get it to change.

Seems a little pedantic i know but it just makes the form non user friendly.

Open to suggestions!! Cheers.
Nov 30 '06 #1
22 13306
MMcCarthy
14,534 Recognized Expert Moderator MVP
In Tools - Options under the Advanced tab.

Is your Default Record Locking set to Edited Record?

Is Open databases using record-level locking ticked?
Nov 30 '06 #2
philelpko
31 New Member
Default Record Locking is set to "No Locks"

The Open databases using record-level locking is ticked.
Nov 30 '06 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Default Record Locking is set to "No Locks"

The Open databases using record-level locking is ticked.
Change Default Record Locking set to "Edited Record" and comment out the Me.Parent.Reque ry code. Does this solve the problem?

Mary
Nov 30 '06 #4
philelpko
31 New Member
Alas not,

Commenting out the Me.Parent.Reque st code allows me to switch between the subforms on a single click but I now get the error message again (Record locking changed to "Edited Record")

The subforms update perfectly well regardless of the error message. Is there anyway to disable certain error messages so the code carries on unhindered?

(cheers for the help)
Nov 30 '06 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
Alas not,

Commenting out the Me.Parent.Reque st code allows me to switch between the subforms on a single click but I now get the error message again (Record locking changed to "Edited Record")

The subforms update perfectly well regardless of the error message. Is there anyway to disable certain error messages so the code carries on unhindered?

(cheers for the help)
When you click the tickboxes are the subforms just switching from invisible to visible?
Nov 30 '06 #6
philelpko
31 New Member
Yes, the check boxes only change the visible state from true -> false (or vice versa). On the main form the 3 subforms are on top of one another. I read articles about over laying. Half said dont do it, the other half said its fine as long as you dont need to change the layout later.
Nov 30 '06 #7
MMcCarthy
14,534 Recognized Expert Moderator MVP
Yes, the check boxes only change the visible state from true -> false (or vice versa). On the main form the 3 subforms are on top of one another. I read articles about over laying. Half said dont do it, the other half said its fine as long as you dont need to change the layout later.
I've used a similar procedure before. The record shouldn't be trying to update just because the subform is going invisible.

Are your tickboxes based on a option group or are they individual?
Nov 30 '06 #8
philelpko
31 New Member
The tickboxes are individual
Nov 30 '06 #9
MMcCarthy
14,534 Recognized Expert Moderator MVP
The tickboxes are individual
Can you post the code for one of the tickboxes with the Me.Parent.Reque ry included.
Nov 30 '06 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
9209
by: Bill Short | last post by:
Hello All, I have a popup form that is called from a command button on the main form. The main form's data source is tblA. The data source for the popup form is a query that is based on tblA. The OnClose event of the popup attempts to change data in a text box on the main form if certain changes have been made on the popup. Because both use the same data source I have tried saving the record before attempting to make the changes, I...
8
12001
by: markus_fried | last post by:
Hi, we're using Access97 as frontend to a Oracle db. In Access we have a bound form which is using a Dynaset as source, global locking and form locking is off. All worked well until yesterday. We dublicated some records for a new session in the Oracle db and since then some of these records cannot be edited from Access. An error occurs: "This record has been changed by another user since you started editing...". We are in a single-user
2
15410
by: RC | last post by:
I am getting the following error message. "Write Conflict this record has been changed by another user since you started edting it. If you save the record, you will overwrite the changes...." I have an Access 2002 database running on a single PC, the front and backend have not been separated yet. I have a form where I use a text box to jump from record to record. The form has about 12 bound text boxes on it. The table that is the...
3
3605
by: Terri | last post by:
I'm getting the error message "The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record" This is the code that is causing this on the Before Update event. Me.ModifyUser = Forms!frmswitchboard.UserName Me.ModifyDateTime = Now() I am trying to audit when the data on the form has changed and who changed
12
10930
by: daniel | last post by:
Hi All, I have a form and VB code in Access. The code is like With rs .Edit !Field = 10 .Update End With
19
8283
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/9ae1c9d419264380/125a82c9be127790?lnk=st&q=checking+html+form++(updated+OR+edited+OR+changed)&rnum=28&hl=en#125a82c9be127790 suggests that you attach onChange event handlers to every form element, and when the handler fires you update a global 'isChanged' variable. This technique...
7
16350
by: PW | last post by:
Hi, I have a form with unbound fields on it. The user selects a record from a recordset and I populate the unbound fields. When I try to change the unbound quantity text box, Access 2003 tells me "The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record." This does not always happen. And yes, I can re-edit the quantity text
10
2624
by: Roger | last post by:
ms-access97 & sql server2005 two tables tblItem tblItemFeature form frmItem contains subform frmItemFeature each form is based on their respective table creating new record and filling in two bound fields works fine
1
1912
by: TracySHC | last post by:
I noticed that the "The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record" message has been dealt with in this forum. I am updating a file when a command button on Form A is clicked, and then displaying Form B. When a field on Form B is changed, I am receiving the above message. I am updating using SQL statements rather than a recordset. What should I...
0
8428
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
8335
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
8851
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
8747
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...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6179
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...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1737
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.