473,765 Members | 2,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write Conflict in Query

Hi,

I have a query that I have been using as a record source for a form
with no problems. I just created a new "addnew" form, and added 20
records to the table with this form. The problem I now have is I
cannot modify data on these new records using my query.

The query's sql is: SELECT tblSpaceUse.* FROM tblSpaceUse;
The error I get is:
"Write Conflict -
The record has been changed by another user since you started editing
it. If you save the record, you will overwrite the changes the other
user made."

I thought maybe the "*" in the sql had something to do with it, so I
listed each field individually instead.
(SELECT tblSpaceUse.Roo mID, tblSpaceUse.Roo mLocation,
tblSpaceUse.Flo orNumber
FROM tblSpaceUse;)
However, I get inconsistent results. Sometimes I can change the data,
sometimes I still get Write Conflict. But it's weird: one time, I
changed a value from 2 to 3, 3 to 4, 4 to 5, and it was fine, but then
I changed it to 6, and I got the write conflict. But when I tried the
same sequence again, it behaved differently. (all these values are
valid.)

I am able to change older records with either statement!!

I don't know if it's how I'm adding, or something on my table. I
compared new records with old, and I can't see anything that's
different.

Any suggestions?

Thanks in advance.
ps - is there a way to get notified when I have a response on this
thread?

Sep 21 '06 #1
1 2448

lorirobn wrote:
Hi,

I have a query that I have been using as a record source for a form
with no problems. I just created a new "addnew" form, and added 20
records to the table with this form. The problem I now have is I
cannot modify data on these new records using my query.

The query's sql is: SELECT tblSpaceUse.* FROM tblSpaceUse;
The error I get is:
"Write Conflict -
The record has been changed by another user since you started editing
it. If you save the record, you will overwrite the changes the other
user made."

I thought maybe the "*" in the sql had something to do with it, so I
listed each field individually instead.
(SELECT tblSpaceUse.Roo mID, tblSpaceUse.Roo mLocation,
tblSpaceUse.Flo orNumber
FROM tblSpaceUse;)
However, I get inconsistent results. Sometimes I can change the data,
sometimes I still get Write Conflict. But it's weird: one time, I
changed a value from 2 to 3, 3 to 4, 4 to 5, and it was fine, but then
I changed it to 6, and I got the write conflict. But when I tried the
same sequence again, it behaved differently. (all these values are
valid.)

I am able to change older records with either statement!!

I don't know if it's how I'm adding, or something on my table. I
compared new records with old, and I can't see anything that's
different.

Any suggestions?
Why not simply use the table itself as the recordsource for your forms?
"SELECT * FROM <tablename>" without any limiting criteria (e.g. a
"where" clause) is equivalent to simply using the table itself.
Thanks in advance.
ps - is there a way to get notified when I have a response on this
thread?
Don't know about that one. Perhaps there is a setting in your
newsreader software.

Bruce

Sep 21 '06 #2

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

Similar topics

6
94553
by: Max | last post by:
Hi, I have SqlServer 2000 as back end and Access 2000 as front-end. All tables from Sqlserver are linked to Access 2000. I am having write conflict problem with one of my form which is bound to a query which consist of let say tableA , TableB and TableC (all are linked tables from SqlServer. While the form is open I am modifying TableA through code on Form_AfterUpdate Event and getting the following message.
2
15418
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...
1
1612
by: Eric E | last post by:
Hi all, I am using an Access 2000 client linked to a Postgresql 7.4 server via ODBC. I have a stored proc on the server that inserts rows into a table.particular table, accomplished via an INSERT within the body of the stored proc. The problem is that Access will not modify these records via table or form view (form has a DAO recordset), giving its generic "Write
1
3085
by: shumaker | last post by:
I've loked over older messages on this, but haven't found a solution. I have a datasheet of records, and each record has a subform that can be viewed with the expand '+' symbol. The subform simply shows addition fields of the record it is expanded from. I used the subform control wizard to tell it how to link the records when creating the subform. There is only one control in the subform that the users can edit, a textbox. All the...
5
4731
by: Simon | last post by:
Dear reader, I have two Forms they are both working with dada from the same tables. By typing in some changes in Form-B the changes are also visible in Form-A. There is no record lock set.
1
3753
by: Kuriandungu | last post by:
Hi guys I've read the posts on Write conflict entered in this forum (along with some from kbAlertz and microsoft) and i have tried all the solutions without success. let me give you some background. i have an access form bound to a customers table in sql. the table in sql has an index on the customer code and has an autoincrement field generated by sql (rowid). i have also put a time stamp field. My Access form does not add any records to...
4
8506
by: crystal | last post by:
I've checked the threads but haven't been able to come up with a solution to my issue. Help...... I have a simple form based on a table. Within the form is a subform that is also, through a Q, based on the same table. The code: Private Sub Select_BeforeUpdate(Cancel As Integer) On Error GoTo resetselect_Err
3
1882
by: Bidhan | last post by:
Hi, I have a table (Stock) important field are partsNo., des, qty, pPrice, sPrice, qtyBuy. I make a query based on the table and has one more field SAB(qty+qtyBuy). I made a form based on the query. User can enter data in any field. When I enter data in ‘qtyBuy’ field I can see the added value by SAB field. My obligation is to set this value into stock table in qty field. To perform this action I run an action query in a macro in qty field...
11
1844
by: Stan | last post by:
I am using MS Office Access 2003 (11.5614). I have been running the following query with good results. The query lets me enter the month period and returns the SUM of the age fields. SELECT AS , SUM() AS , SUM() AS , SUM() AS , SUM() AS FROM WHERE FORMAT(,"mm/yyyy")=; I now want to add an additional criteria of the city field. I added
0
9566
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
9832
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
8830
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...
1
7371
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
5272
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
5413
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3921
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
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2800
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.