Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / May 2005

Tip: Looking for answers? Try searching our database.

Write Conflict

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shafiee - 29 May 2005 06:49 GMT
Hi there,

I have two tables which has a one-to-one relationship between them. I
created a view combining the fields of both tables, and when trying to add a
new record in that view, I'm getting the following error:

---------------------------------------------------------------------
Write Conflict
?     X
---------------------------------------------------------------------
This 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.

Copying the changes to the clipboard will let you look at the values
the other user entered, and then paste your changes back in if you
decide to make changes.

       [Save Record]   [Copy to Clipboard]  [Drop Changes]
---------------------------------------------------------------------

When I click Save Record button, I'm getting the same error again. When I
click Drop Changes, records are added to one table, but the records for the
other table is dropped.

Can anyone help me?

Shafiee.
Vadim Rapp - 29 May 2005 07:17 GMT
Hello shafiee,
You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
May 2005 10:49:23 +0500:

s> I have two tables which has a one-to-one relationship between them. I
s> created a view combining the fields of both tables, and when trying to
s> add a new record in that view, I'm getting the following error:

s> ---------------------------------------------------------------------
s> Write Conflict
s> ?     X

are there any triggers on either of the tables?

Vadim Rapp
shafiee - 29 May 2005 08:31 GMT
Hi Vadim,

There aren't any triggers for either tables.
Should I be using triggers?

Shafiee.

> Hello shafiee,
> You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
[quoted text clipped - 11 lines]
>
> Vadim Rapp
Vadim Rapp - 30 May 2005 00:49 GMT
Hello shafiee,
You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
May 2005 12:31:16 +0500:

s> There aren't any triggers for either tables.
s> Should I be using triggers?

No. I asked because triggers could produce this effect.

I would run Profiler on sql server to see what's going on. Also, do both
tables have primary keys?

Vadim
shafiee - 30 May 2005 04:25 GMT
I'm pretty sure that no triggers are involved, because the database was very
badly designed at first. I was the one who created the relationships to work
with queries. The problem I had was data entry, as the designer didn't
provide a simple location from which data can be entered. There were
unrelated data everywhere, because of the data entry problem. I had to use a
delete query to delete the unrelated data, and now relationships control how
data is entered... i mean unrelated data cannot be entered now.

Actually the db collects information about staff in two different tables -
StaffNames and StaffContacts. StaffNames have the primary key, StaffContacts
have the foreign key. Earlier there was no relationship between StaffNames
and StaffContacts. But now, I have created a one-to-one relationship.

Although I didn't solve the actual problem, I followed a recommendation of
microsoft which employs subforms in adp which made life a whole lot easier.

But I would really like to know if there is a solution to the actual
problem.

Shafiee.

> Hello shafiee,
> You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
[quoted text clipped - 9 lines]
>
> Vadim
shafiee - 29 May 2005 08:58 GMT
Oh I got it.
http://support.microsoft.com/default.aspx?scid=kb;en-us;241717

It was a bug. I have to download the latest service pack for SQL server.

Can anyone tell me how to get it?

Shafiee.

> Hi there,
>
[quoted text clipped - 23 lines]
>
> Shafiee.
Sylvain Lafontaine - 29 May 2005 19:20 GMT
Sure, for SQL-2000:
http://www.microsoft.com/sql/downloads/default.mspx

and fro SQl-7:
http://www.microsoft.com/sql/downloads/servicepacks.mspx

However, I'm not sure if your problem is related to a lack of the latest
service pack.  Many things can lead to a write conflict under ADP.  Take a
look at the previous post in this newsgroup and you will find many
suggestions.  (If necessary, Google has a full archive of them.  See:
http://groups.google.ca/group/microsoft.public.access.adp.sqlserver )

One of the best suggestion is to use the Profiler on the SQL-Server to see
what Access is doing.

Signature

Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF

> Oh I got it.
> http://support.microsoft.com/default.aspx?scid=kb;en-us;241717
[quoted text clipped - 32 lines]
>>
>> Shafiee.
Vadim Rapp - 30 May 2005 20:28 GMT
Hello shafiee,
You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
May 2005 12:58:07 +0500:

s> Oh I got it.
s> http://support.microsoft.com/default.aspx?scid=kb;en-us;241717

s> It was a bug. I have to download the latest service pack for SQL server.

hmm... the message in the article has nothing in common with yours... it
even comes from sql server, while yours comes from Access.

Vadim
shafiee - 31 May 2005 03:29 GMT
Yeah... the same view cannot be edited in enterprise manager.
The bug exists in both access and SQL server i guess.

> Hello shafiee,
> You wrote in conference microsoft.public.access.adp.sqlserver  on Sun, 29
[quoted text clipped - 10 lines]
>
> Vadim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.