Solved

Write Conflict Due to Code Updating

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
table joins in qry 17 63
Access Schema 6 26
XML Node Counting in MS Access VBA 4 36
Access form for login using active directory 6 23
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

829 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