The code below is from a command button to save the contents of a form to a new record. It worked fine until I added the call statement afterwards. Why would that cancel the save?
The procedure in the call statement does execute after the save.
Private Sub cmdClickToContinue_Click()
On Error GoTo Err_cmdClickToContinue_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Call AddPatientToWard
Exit_cmdClickToContinue_Click:
Exit Sub
Err_cmdClickToContinue_Click:
MsgBox Err.Description
Resume Exit_cmdClickToContinue_Click
End Sub