Hi All,
I have a recurring error message that states "The DoMenuItem action was cancelled..." after I exit a new record. I am trying to save the record to a list, but can't without this error. Any suggestions as to a resolution are appreciated, here is the code I currently have for the exit command button:
Private Sub cmdExitNew_Click()
On Error GoTo Err_cmdExitNew_Click
Dim NewOwner As String
NewOwner = Forms!frmLogin!Login
MsgBox NewOwner
Me!TypeOwner = NewOwner
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close
Exit_cmdExitNew_Click:
Exit Sub
Err_cmdExitNew_Click:
MsgBox Err.Description
Resume Exit_cmdExitNew_Click
End Sub
Thanks again.
I have a recurring error message that states "The DoMenuItem action was cancelled..." after I exit a new record. I am trying to save the record to a list, but can't without this error. Any suggestions as to a resolution are appreciated, here is the code I currently have for the exit command button:
Private Sub cmdExitNew_Click()
On Error GoTo Err_cmdExitNew_Click
Dim NewOwner As String
NewOwner = Forms!frmLogin!Login
MsgBox NewOwner
Me!TypeOwner = NewOwner
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close
Exit_cmdExitNew_Click:
Exit Sub
Err_cmdExitNew_Click:
MsgBox Err.Description
Resume Exit_cmdExitNew_Click
End Sub
Thanks again.