473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create 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 2777
Thoughts below:

"Del" <dt****@yahoo.com> wrote in message
news:c2**************************@posting.google.c om...
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
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...
0
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...
2
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()...
7
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...
1
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...
0
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...
1
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. -...
7
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...
1
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...
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
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
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.