Solved

Write Conflict Due to Code Updating

Posted on 2006-07-03
4
243 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now