A
Angi
Before everyone attacks me, I did do a search on this topic and found
thousands of postings. I read a couple hundred without finding my
answer, so I'm taking the chance and asking.
<meekly> Why does my form (cts form view) cmdDelRec button work when
opened alone but not as a subform??
Private Sub cmdDelRec_Click()
If MsgBox("Are you sure you want to delete this contact?",
vbOKCancel + vbCritical, "WARNING!") = vbOK Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
Me.Requery
DoCmd.SetWarnings True
End If
End Sub
TIA!
thousands of postings. I read a couple hundred without finding my
answer, so I'm taking the chance and asking.
<meekly> Why does my form (cts form view) cmdDelRec button work when
opened alone but not as a subform??
Private Sub cmdDelRec_Click()
If MsgBox("Are you sure you want to delete this contact?",
vbOKCancel + vbCritical, "WARNING!") = vbOK Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
Me.Requery
DoCmd.SetWarnings True
End If
End Sub
TIA!