UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Write Conflict Error, Office 2010    
 
   
Dexter
post Apr 19 2012, 12:06 PM
Post #1

UtterAccess Guru
Posts: 508



I have two forms, both with after update events that update data on a subform bound by a query. The form itself is bound by a table where the data is filtered by a select statement. The current record on the form is being updated with the after update events are run. One form works great and I never get this error but the other one I do get the error fairly often. I read online and one solution was to add a timestamp column? Is there a timestamp data type or is that only in SQL databases? Another form said that I should make the form requery. Does that mean a simple me.requery statement in my code? If so, where?

Any advice is appreciated.

Thank you
Go to the top of the page
 
+
HiTechCoach
post Apr 19 2012, 02:36 PM
Post #2

UtterAccess VIP
Posts: 18,427
From: Oklahoma City, Oklahoma



This issue is probably due to the fact that the record is already flag as in "edit mode" and another process/form is trying to update the same record.

The key is to make sure that you have the record saved.

The record can be save with
CODE
Me.Dirty = False


The suggestion of use of Me.Requery will work since it does is force a save the record but it also does a lot more that may not be necessary.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 05:25 PM