Solved

Write Conflict Due to Code Updating

Posted on 2006-07-03
4
249 Views
Last Modified: 2011-04-14
I have some code (ADO) that runs from a child form and updates some fields on a parent form.  I always get a write conflict message when this runs.  I tried putting a save function in for the parent form from the child form and it isn't working (look at line of code below).  Any ideas on how to figure this out?

Forms!frmPriceQuote.Form.Application.DoCmd.RunCommand acCmdSaveRecord

0
Comment
Question by:bengelhart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 17031203
U could just try, from the subform

Me.Parent.Form.Dirty = False
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 17031213
If the forms are bounded and you have made changes via form, then u try to make changes via code, u may get the error. I don't know what your steps are.
But setting Dirty to False forces a save
0
 

Author Comment

by:bengelhart
ID: 17031221
That would stop the write conflict?  I figured  I would need to run some kind of save function for the parent form right before I run my ADO code in the subform.
0
 

Author Comment

by:bengelhart
ID: 17031235
That worked!!  Thanks!!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question