I have a form with a drop down box that populates when you select one of the values from the drop down.
I would like users to be able to select an account from the drop down, edit the associated name info, click "Update" and have that record updated.
Currently it does update the record, but it also creates a duplicate record. What could be causing this?
Here is the code behind the Update button:
Private Sub UpdateRecord_Click()
On Error GoTo Err_UpdateRecord_Click
DoCmd.RunCommand acCmdSaveRecord
DoCmd.GoToRecord , , acNewRec
Exit_UpdateRecord_Click:
Exit Sub
Err_UpdateRecord_Click:
MsgBox Err.Description
Resume Exit_UpdateRecord_Click
End Sub
Alice
I would like users to be able to select an account from the drop down, edit the associated name info, click "Update" and have that record updated.
Currently it does update the record, but it also creates a duplicate record. What could be causing this?
Here is the code behind the Update button:
Private Sub UpdateRecord_Click()
On Error GoTo Err_UpdateRecord_Click
DoCmd.RunCommand acCmdSaveRecord
DoCmd.GoToRecord , , acNewRec
Exit_UpdateRecord_Click:
Exit Sub
Err_UpdateRecord_Click:
MsgBox Err.Description
Resume Exit_UpdateRecord_Click
End Sub
Alice