B
Bob
Any help with this would be appreciated.......Bob
Private Sub cmdClose_Click()
If IsNull(Me.subHorseDetailsChild.Form.OwnerID) Then
If Me.Dirty Then
Me.Undo
End If
'****** I want the form not to save if OwnerPercentage is 0%*******
If IsNull(Me.subHorseDetailsChild.Form.OwnerPercentage) Then
If Me.Dirty Then
Me.Undo
End If
If IsNull(Me.subHorseDetailsChild.Form.OwnerID) Or _
(IsNull(tbName) And IsNull(cbFatherName)) Then
If Me.Dirty Then
Me.Undo
End If
End If
End If
End If
DoCmd.Close acForm, Me.Name
End Sub
Private Sub cmdClose_Click()
If IsNull(Me.subHorseDetailsChild.Form.OwnerID) Then
If Me.Dirty Then
Me.Undo
End If
'****** I want the form not to save if OwnerPercentage is 0%*******
If IsNull(Me.subHorseDetailsChild.Form.OwnerPercentage) Then
If Me.Dirty Then
Me.Undo
End If
If IsNull(Me.subHorseDetailsChild.Form.OwnerID) Or _
(IsNull(tbName) And IsNull(cbFatherName)) Then
If Me.Dirty Then
Me.Undo
End If
End If
End If
End If
DoCmd.Close acForm, Me.Name
End Sub