troubleshooting Question

Microsoft Access Write Conflict

Avatar of Marilync1266
Marilync1266 asked on
Microsoft Access
1 Comment1 Solution698 ViewsLast Modified:
I have a combo box with an "after update" event that will run sql to update the table tied to the form with some data.  This routine is called by other events and it works fine, but when I access it through the combo box I receive a "write conflict error" and it does not actually update the record until I select another record on the form

Private Sub Contract_Type_AfterUpdate()
DoCmd.SetWarnings False
Me.Term = Forms!frm_Opportunity_Quote!Contract_Type.Column(1)
Me.Contract_Type_New = Forms!frm_Opportunity_Quote!Contract_Type.Column(0)
Call Calculate_Finance(Me.txtQuoteNo, True)

End Sub

From the Calculate_Finance routine
--- Monthly_Pmt does not update until I select a different record.  But, the Total_Quote_Amount does update.

    strFinance = ("Update tbl_Quotes " & _
        "Set tbl_Quotes.Monthly_Pmt = " & intPmt & ", tbl_Quotes.Total_Quote_Amount = " & _
            intTotal & " Where tbl_Quotes.QuoteNo = '" & strQuoteNo & "';")
    DoCmd.RunSQL strFinance
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros