If I use the code below (button code) to delete a record in a subform data sheet, then the code I have in Form - On Delete Event doesn't get triggered. How can I make Form events trigger while using the code below?
Private Sub cmdSubDeleteRecord_Click()
On Error GoTo Err_MyProc
'Deassign all objects.
'Error handler here
Select Case (Err.Number)
MsgBox "No record is selected."