Yes that’s right, the save is within the on click of a command button. This is the complete code that I am trying to generate. Thanks for your help
Code:
Private Sub Save_Record_Click()
Dim SQL As String
SQL = "Update Investor_Request set Status = 'Closed' where Loan_Number = " & Me![Loan Number] & _
" AND status = 'Outstanding'"
CurrentDb.Execute SQL, dbFailOnError
On Error GoTo Err_Save_Record_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Exit_Save_Record_Click:
Exit Sub
Err_Save_Record_Click:
MsgBox Err.Description
Resume Exit_Save_Record_Click
End Sub