B
Bob
All I want is the record not to save unless there is data in Both, cbOwnerID
and TbAmountpaid
Private Sub cmdClose_Click()
If IsNull(cbOwnerID) And (TbAmountPaid) Then
If Me.Dirty Then
Me.Undo
End If
End If
DoCmd.Close acForm, Me.Name
End Sub
and TbAmountpaid
Private Sub cmdClose_Click()
If IsNull(cbOwnerID) And (TbAmountPaid) Then
If Me.Dirty Then
Me.Undo
End If
End If
DoCmd.Close acForm, Me.Name
End Sub