473,396 Members | 1,816 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.

data has been changed error message

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
it.

Any ideas?

Access 2002 mdb with linked tables to SQL Server 2000
Nov 13 '05 #1
3 3592
On Fri, 11 Nov 2005 15:49:33 -0700, "Terri" <te***@cybernets.com> wrote:
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
it.

Any ideas?

Access 2002 mdb with linked tables to SQL Server 2000


Are you sure that code is the cause? What happens when you comment that code
out?
Nov 13 '05 #2
I've had better luck using AfterUpdate than BeforeUpdate for such purposes.

"Terri" <te***@cybernets.com> wrote in message
news:dl**********@reader2.nmix.net...
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
it.

Any ideas?

Access 2002 mdb with linked tables to SQL Server 2000

Nov 13 '05 #3
MacDermott wrote:
I've had better luck using AfterUpdate than BeforeUpdate for such
purposes.


Why? If you change a record in the AfterUpdate then you trigger another update.
I'm not sure you wouldn't be trapped in a loop were you to do that.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4

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

Similar topics

10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
7
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...
1
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...
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
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
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...
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.