Does anybody know how to delete the parent record from inside the subform's exit event. I've got a little sub to see if there were any required fields attached to a parent PO record. If there is not I would like to delete the parent since there would be no use in keeping track of it. Here's what I got so far.

Private Sub tblPO_lines_subform_Exit(Cancel As Integer)
Dim chk As Integer
If Forms![Enter/Edit PO's]![tblPO_lines subform]!Text10 = 0 Then
chk = MsgBox("You haven't entered any lines to attach to this PO. Press Retry to re-attempt or Cancel to delete.", vbRetryCancel, "Entry Error")
If chk = vbCancel Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Cancel = True
Forms![Enter/Edit PO's]![tblPO_lines subform]! poLine_garage.SetFocus
End If
End If
End Sub

This seems to attempt to delete the subforms records (of which there are none) how do I make it delete the parent record. Any help would be great. Thx in advance