Results 1 to 4 of 4
  1. #1
    jamphan is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    8

    Update query field from form using VBA - Write Error Conflict

    I am attempting to update 3 date fields from an unbound form field using VBA. The form is based on a query. Below is the code I am using but when I change the date I get a Write Conflict Error message. The query is based on 1 table. Any help is greatly appreciated.




    Private Sub Calendar3_Click()
    Select Case Me.DescLabel.Caption
    Case "Date Notified"

    Me.DateNotifiedNew.Value = Format(Me.Calendar3.Value, "General Number")
    DoCmd.Close acForm, "frmcalendar", acSaveYes
    DoCmd.Requery

    Case "Date Title Requested"

    Me.DateTitleReqstdNew.Value = Format(Me.Calendar3.Value, "General Number")
    DoCmd.Close acForm, "frmcalendar", acSaveYes
    DoCmd.Requery

    Case "Gap Claim Notification"

    Me.DateGapInitiated.Value = Format(Me.Calendar3.Value, "General Number")
    DoCmd.Close acForm, "frmcalendar", acSaveYes
    DoCmd.Requery


    End Select
    End Sub

  2. #2
    help_me_with_access is offline help_me_with_excel
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    262
    write conflict? well maybe the query is a non-updateable type?

    what's the query's SQL? do multiple people use these forms? write conflicts also occur during locked form sessions, I THINK. either that or it says something like "permission denied" to the user in violation of the request.

  3. #3
    jamphan is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    8
    The weird thing is the code and form worked perfectly for years. Someone added a couple of records to a table that feeds a drop down menu on the form and now the date fields no longer work.

  4. #4
    help_me_with_access is offline help_me_with_excel
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    262
    hmmmm...well to be honest with you, there are literally millions of people out there, even professional developers, that end up doing things in access that would otherwise be considered OK. Access is difficult. It's not a trustworthy program, generally speaking. It's hard to say if the other person violated one of Access's "unknown" rules or if you've run into the common problem of corruption.

    not sure what to tell you. Other than to backup your access files at least once a day and in more than one place (more than one computer) simply because of the reason stated above.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. The dreadfull Write Conflict error - help
    By jscriptor09 in forum Programming
    Replies: 1
    Last Post: 09-29-2011, 06:11 PM
  2. Write Conflict After Update to 2010
    By cnelson in forum Access
    Replies: 5
    Last Post: 08-24-2011, 11:01 AM
  3. write conflict error
    By karuppasamy in forum Access
    Replies: 1
    Last Post: 06-07-2011, 12:23 PM
  4. Write Conflict Error Message
    By AKQTS in forum Forms
    Replies: 2
    Last Post: 07-27-2010, 09:57 AM
  5. Write Conflict Error
    By botts121 in forum Access
    Replies: 5
    Last Post: 09-25-2009, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums