473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when trying to update SQL Server from MS Access

Del
We have a MS SQL Server 2000 application for our shipping system. We
have created a front end application using MS Access for our order
analyst. The front end application allows the analyst to review and
update orders before they are released to the warehouse. We are in the
test phase of this project and have run into a couple problems that we
just can not figure out.

During the testing phase there is only one person working in the
system.

1) From time to time we receive an error after data has been entered
into a field, and the user exits the field. The error reads:

"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>'

The data that was just entered is then deleted from the field.
Re-Entering the data and exiting the field then works fine and the
data is written to the SQL Table. This error can happen on any field
(Text Boxes, Combo Boxes, Check Boxes etc.) of the Access form at any
time.

Is this error possibly because SQL is editing the record at the same
time as the user?

2) Also from time to time the user will recieve a ODBC error. The
error is quite lengthly, but it basically says access has been denied.
Exiting the Access application and restarting it seems to help some
times but not always. We have tried using NT Authenication, and SQL
Authenication. The SQL Authenication seems to work better in that we
don't receive this error as often. All user access have been given
Read, Write, Change access to the tables.

Thanks in advance for any help on these issues.

We are using MS Access 2000, XP, 2003 and MS SQL Server 2000

Thanks again,

Del
Nov 12 '05 #1
1 2807
Thoughts below:

"Del" <dt****@yahoo.c om> wrote in message
news:c2******** *************** ***@posting.goo gle.com...
We have a MS SQL Server 2000 application for our shipping system. We
have created a front end application using MS Access for our order
analyst. The front end application allows the analyst to review and
update orders before they are released to the warehouse. We are in the
test phase of this project and have run into a couple problems that we
just can not figure out.

During the testing phase there is only one person working in the
system.

1) From time to time we receive an error after data has been entered
into a field, and the user exits the field. The error reads:

"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>'

The data that was just entered is then deleted from the field.
Re-Entering the data and exiting the field then works fine and the
data is written to the SQL Table. This error can happen on any field
(Text Boxes, Combo Boxes, Check Boxes etc.) of the Access form at any
time.

Is this error possibly because SQL is editing the record at the same
time as the user?
You seem to imply that this happens on a field-by-field basis and not on a
record-by-record basis. If so, do you have code running when the data in a
any one of a specific set of controls changes? I only ask since it might
point to something funky going on.

Generally, you should examine all of the "automatic" data changes that may
be taking place such as any triggers in the SQL server that alter the data
when it is read (a n audit log trigger might do this.) Also, review and
auto-changes that Access may be doing such as auto-number functions or code.

Are there any trends on when this happens or does it appear completely
random?

I have been developing using Access for years using SQL Sever as a back end
and only occasionally do I run into such an issue. Innevitably, there is
some rogue function (or maybe a user) that is making Access and SQL server
think that the data has changed since you read the record.

2) Also from time to time the user will recieve a ODBC error. The
error is quite lengthly, but it basically says access has been denied.
Exiting the Access application and restarting it seems to help some
times but not always. We have tried using NT Authenication, and SQL
Authenication. The SQL Authenication seems to work better in that we
don't receive this error as often. All user access have been given
Read, Write, Change access to the tables.
Do you have the text of the error message?

Thanks in advance for any help on these issues.

We are using MS Access 2000, XP, 2003 and MS SQL Server 2000

Thanks again,

Del

Nov 12 '05 #2

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

Similar topics

1
3965
by: Fie Fie Niles | last post by:
I have IIS installed on XP Professional workstation machine. I have an ASP page that open connection to an Access database, then when trying to update the database, it gave me the error "cannot update database or object is read-only". This is a workstation machine, not connected to any other computer, and I login to the PC using an administrator account. I already check the .MDB file is NOT read-only. But, I do not see the .LDB file....
0
1193
by: Morten Gulbrandsen | last post by:
C:\mysql\bin>mysql -u elmasri -pnavathe company Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 29 to server version: 4.1.0-alpha-max-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select database(); +------------+ | database() | +------------+
2
3176
by: Phil Powell | last post by:
I am not sure why this is producing a SQL Server related error, but w/o having an instance of SQL Server on my machine to verify anything further, can you all help me with this? <!--- validate() ---> <cffunction name="validate" access="remote" returnType="numeric"> <cfargument name="username" required="yes" type="string" /> <cfargument name="password" required="yes" type="string" /> <cfquery name="validate" datasource="#request.dsn#">
7
3418
by: Jack | last post by:
Hi, I am trying to test a sql statement in Access which gives me the error as stated in the heading. The sql statement is built as a part of asp login verification, where the userid and password are input in login screen. The password in the database is a number field. I am writing the dynamic sql statement as follows below. I believe I am going wrong in the password section of the code. I appreciate any help. Thanks. Regards.
1
369
by: Del | last post by:
We have a MS SQL Server 2000 application for our shipping system. We have created a front end application using MS Access for our order analyst. The front end application allows the analyst to review and update orders before they are released to the warehouse. We are in the test phase of this project and have run into a couple problems that we just can not figure out. During the testing phase there is only one person working in the...
0
2132
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops working when I include data entry fields to the form: I click on Delete or Edit inside of DataGrid and get this error: "Error: Object doesn't support this property or method" If I remove data entry fields from the form - DataGrid allows to...
1
2161
by: Matt | last post by:
I'm using classic ASP with an Access 2003 database, running on Win 2003 Server (IIS 6), trying to update a table and get the following error: Syntax error in UPDATE statement. - Err.Number:-2147217900 - SQL:UPDATE shipments SET shipmentDescription='$0 - $ Here's my script:
7
7796
by: Jan | last post by:
Hi: When I searched the newsgroup for this problem, I saw two or three instances of the question being asked, but it was never answered. Not too promising, but here goes: I have a form with four subforms, and bit of code that cycles through the data in the subform (bound to a local temp table) and writes it to a table on the server. This code has run at the client with no problems for over a year.
1
3192
by: sphinney | last post by:
All, I'm not sure how to adequately explain my problem in two sentences or less, so at the risk of providing TMI, here's the condensed verion. I have developed an Access 2002 database file that contains a form, multiple queries and multiple reports. The purpose of the form is to allow the user to run various queries against my company's Sybase server and display a report. Since the queries return ADO recordsets from the Sybase server,...
0
9541
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
10251
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
10228
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
10027
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...
0
9072
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...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
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
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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.