In VB5, I am using a data control along with a dbgrid, when I delete a row, I have it display a msgbox, but after my msgbox it displays another one saying
"This Action was cancelled by an associated object." the code I am using is

If vbKeyDelete Then
If SSTab1.Caption = "Log Information" Then
Msg = "Delete Row? (This Cannot Be Undone!)"
Style = vbYesNo + vbCritical
Title = "Remove Row"
Ctxt = 1000
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
End If
End If
If Response = vbNo Then
Cancel = True
End If


How Can I remove the seconed msgbox?

Thank you,
Jeremy

------------------
[email protected]