473,395 Members | 1,931 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,395 software developers and data experts.

Writing conflict when record is unchanged

Hi all,

In the past few weeks, I've been struggling with setting up an Access
(XP) user interface to a MySQL database. So far, I seem to have been
able to overcome most of the difficulties, but I'm still stuck with
those famous writing conflicts one gets when coupling Access and MySQL.

I've made a simple test case: a small table containing the following
fields:

ID (int, auto_increment, primary key)
Text (varchar 50)
YesNo (bool, default 0)
Timestamp (timestamp, default current_timestamp)

ID and Timestamp should make Access happy, Text and YesNo are the
actual data. MyODBC is set up correctly (I've read all the FAQs afaik).

Now I link the table into Access and create a form with a text box for
the field Text and a checkbox for YesNo. I open the form.

When I change a record, everything's fine. However, when I e.g. click a
checkbox *twice*, so that in the end nothing's changed, and then go to
the next record, a writing conflict pops up. Of course, who cares ---
nothing's changed to the record --- but it's an annoying thing, and
certainly not very user-friendly!

Is there anyone familiar with this problem? Is there a solution? Have I
done something wrong, or is this just an unsolvable Access quirk? (I
know, Access is not the best way to go for a MySQL UI, but Webbased
takes a huge amount of time and isn't as user-friendly; custom app
development is way too expensive).

Thanks for your time!

Yours sincerely,
Onno

Jul 24 '06 #1
3 1939
Hi Onno,

THe writeconflict issues between Access and most sql servers is a known
issue. I have had to deal with it myself. One thing you can try is to
make sure that the tables in the sql server (mysql server) all have
default values like '' for text, 0 for numeric and for date values don't
allow any null values (meaning - all date fields must contain data).
This seems to eliminate the writeconflict issue. This means first you
have to update your table(s) and set all nulls to 0 or '' per data type
or assign some default date value for date fields (default date value
like 1/1/1900). Then you can alter your tables and set the default
values of the fields.
Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jul 24 '06 #2
Onno,
I experienced similar problems when linking to Postgres
tables. Because digital machines often have trouble representing the
values of real numbers, you may have to watch the precision of your
table fields that are typed as singles. That is to say use the same
number of decimal places in the code and tables.

Hank Reed
Rich P wrote:
Hi Onno,

THe writeconflict issues between Access and most sql servers is a known
issue. I have had to deal with it myself. One thing you can try is to
make sure that the tables in the sql server (mysql server) all have
default values like '' for text, 0 for numeric and for date values don't
allow any null values (meaning - all date fields must contain data).
This seems to eliminate the writeconflict issue. This means first you
have to update your table(s) and set all nulls to 0 or '' per data type
or assign some default date value for date fields (default date value
like 1/1/1900). Then you can alter your tables and set the default
values of the fields.
Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jul 24 '06 #3
Hi Rich & Hank,

Thank you very much for your replies. My tables do not contain any
float numbers, so that's not the problem, but I think I will give it a
try to remove all NULL values and change them to 0 and empty strings
instead... Perhaps that will help.

Yours sincerely,

Onno

Jul 26 '06 #4

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

Similar topics

0
by: VHR | last post by:
Hi, I apologize for posting this a second time, but no one replied from the other group where I posted it. I have a design master and 4 replicas that I have successfully synced on about 4-5...
2
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...
4
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,...
1
by: lorirobn | last post by:
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...
8
by: christianlott1 | last post by:
After searching the group and the net, I just can't believe after all this work I'm going to have to sit through three Write Conflict messages when I want to roll back and delete a record. The...
3
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....
6
by: jpatchak | last post by:
Hello, I have a main form with one subform. I have a command button on the main form to delete the current record. Below is my code. The tables on which the main form and subform are based...
1
by: mick | last post by:
Hi, if I add a record to a table in my database, everything goes well. When I then place the table in another database and link to it from my database I suddenly get a key conflict when I add a...
1
MindBender77
by: MindBender77 | last post by:
Hello all, Using Acc2000, I'm getting a Write Conflict when trying to move to the next record. I have a form that is bound to a table. It has 7 check boxes representing each day of the week and a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
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...

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.