A
Angi
Only programmers could look at that subject and know what it means! <g>
I have a form (QuoteMain) with a subform (subQuoteDetails). I'm trying
to undo the parent form if the form is closed with no records in the
sub. I've done some research and found that the parent saves as soon
as the user tabs into the subform, but I didn't find how to get rid of
it. I've tried this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.DetailsSub.Form.RecordsetClone Is Empty Then
Me.Undo
End If
End Sub
Didn't work, of course. Should I be using the before_insert instead or
what? TIA!
I have a form (QuoteMain) with a subform (subQuoteDetails). I'm trying
to undo the parent form if the form is closed with no records in the
sub. I've done some research and found that the parent saves as soon
as the user tabs into the subform, but I didn't find how to get rid of
it. I've tried this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.DetailsSub.Form.RecordsetClone Is Empty Then
Me.Undo
End If
End Sub
Didn't work, of course. Should I be using the before_insert instead or
what? TIA!