Hi professionals,
Here is simple code in which I running query which updates records in table. I just would like to handle:
When user click on button and ms access shows option that " you are going to append ... records" If I click on No I don't wana see the Error Message with End and debug. I would like to show MS Access default message also and also when user click on No I would like to show customized message.
Private Sub btnMatchLinks_Click()
On Error GoTo CancelOpt
DoCmd.OpenQuery "qryPutXToMatchingRecord"
CancelOpt:
MsgBox "Cancel by User", vbInformation, "Cancel operation"
End Sub
Really waiting of your kind response.
Here is simple code in which I running query which updates records in table. I just would like to handle:
When user click on button and ms access shows option that " you are going to append ... records" If I click on No I don't wana see the Error Message with End and debug. I would like to show MS Access default message also and also when user click on No I would like to show customized message.
Private Sub btnMatchLinks_Click()
On Error GoTo CancelOpt
DoCmd.OpenQuery "qryPutXToMatchingRecord"
CancelOpt:
MsgBox "Cancel by User", vbInformation, "Cancel operation"
End Sub
Really waiting of your kind response.