E
Eka1618
Hello,
I have read many posts about the Write Conflict Error that occurs in a form.
I have tried doing several of the solutions found in these forums, but
nothing is working. The following code was working for about 5 mins and now
it doesn't work anymore.
I have also tried creating an update query to try to save the record that
way, but it doesn't make this message dissapear.
Here is what I have now:
'*******************************************************************************************
'btnSend will send an e-mail to the test requestor stating that the test has
been conducte
'*******************************************************************************************
Private Sub btnSndResults_Click()
On Error GoTo btnSend_Click_Err
Dim emName As String, varItem As Variant
Dim emailBody As String
Dim emailSubject As String
'DoCmd.OpenQuery "qryUpdateQueueStatus", acViewNormal
Me.STATUS.SetFocus
Me.STATUS = Me.txtReview
'***************************
'SOME OTHER THINGS HAPPEN HERE'
'***************************
'send message
Me.Visible = False
DoCmd.SendObject acSendNoObject, , , emName, , , emailSubject, emailBody,
False, False
DoCmd.Close acForm, "frmQueueID", acSaveNo
Me.Dirty = False
DoCmd.OpenForm "frmMain", acNormal
DoCmd.Close acForm, "frmResults", acSaveNo
....
If I comment out the lines where I SetFocus to STATUS and assign it a new
value, then I do not get the write error, so I know for sure that the other
code is not causing the error to occur.
If anyone has any suggestions, please let me know ebcause i just do not know
how to fix this. Thank you!
~Erica~
I have read many posts about the Write Conflict Error that occurs in a form.
I have tried doing several of the solutions found in these forums, but
nothing is working. The following code was working for about 5 mins and now
it doesn't work anymore.
I have also tried creating an update query to try to save the record that
way, but it doesn't make this message dissapear.
Here is what I have now:
'*******************************************************************************************
'btnSend will send an e-mail to the test requestor stating that the test has
been conducte
'*******************************************************************************************
Private Sub btnSndResults_Click()
On Error GoTo btnSend_Click_Err
Dim emName As String, varItem As Variant
Dim emailBody As String
Dim emailSubject As String
'DoCmd.OpenQuery "qryUpdateQueueStatus", acViewNormal
Me.STATUS.SetFocus
Me.STATUS = Me.txtReview
'***************************
'SOME OTHER THINGS HAPPEN HERE'
'***************************
'send message
Me.Visible = False
DoCmd.SendObject acSendNoObject, , , emName, , , emailSubject, emailBody,
False, False
DoCmd.Close acForm, "frmQueueID", acSaveNo
Me.Dirty = False
DoCmd.OpenForm "frmMain", acNormal
DoCmd.Close acForm, "frmResults", acSaveNo
....
If I comment out the lines where I SetFocus to STATUS and assign it a new
value, then I do not get the write error, so I know for sure that the other
code is not causing the error to occur.
If anyone has any suggestions, please let me know ebcause i just do not know
how to fix this. Thank you!
~Erica~