Advertisement

05.26.2008 at 05:53PM PDT, ID: 23433667
[x]
Attachment Details

Need help! - Write Conflict - No Current Record error when making entry on subform. Still need help

Asked by phmurphy in Access Forms

Greetings,

 I am getting a Write Conflict error when making an entry in a check box on a subform.

 The write conflict error has three option buttons - Save Record, Copy to Clipboard, Drop Changes.  If I click Save record, the on-click event for the checkbox seems to complete OK.  If I click Copy to Clipboard it takes me to another MS Visual Basic error window that says "Runtime error '3197'....you and another user are trying to change the same data at the same time."  And when I click debug I get the following code highlighted that occurs in a subroutine called PrimarySoilUpdate

If DomTestOK = 0 And PrevIndexOK = -1 Then
        Forms!routinewetlanddelineation.Dominant
 End If

"Dominant" is the subroutine that is on the main form (routinewetlanddelineation) but called from the subform.  

There is a part of the code in the Dominant subroutine that will send me back to the subform (Page2) and run the original PrimarySoilUpdate here it is -

If Me.Soilflag Then
     Forms!Page2.PrimarySoilUpdate
End If

If I click the Drop the Changes button I get the same error sequence as the Copy to clipboard button.

The mainform and subform are based on separate queries with about 4 fields that overlap.
Where is the source of what appears to be me trying to edit a record twice simultaneously?

Thanks,

Pat


Start Free Trial
 
 
[+][-]05.29.2008 at 04:54PM PDT, ID: 21674284

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 04:57PM PDT, ID: 21674298

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 05:05PM PDT, ID: 21674336

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Forms
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.30.2008 at 06:18AM PDT, ID: 21677412

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 06:22AM PDT, ID: 21677448

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 07:32AM PDT, ID: 21678082

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 08:05AM PDT, ID: 21678446

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2008 at 10:18AM PDT, ID: 21679642

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628