A
Ann
I don't understand why the following doesn't work??
Private Sub txtDeductibleCreditsStartDate_Exit(ByVal Cancel As
MSForms.ReturnBoolean)
If optMMOGroupYes.Value = True And optDeductibleCreditsYes.Value = True And _
txtDeductibleCreditsStartDate.Value = Null Then
MsgBox "The Deductible Credits Start and" _
& vbCrLf & "End Dates must be entered."
Cancel = True
ElseIf optMMOGroupYes.Value = True And optDeductibleCreditsYes.Value =
True And _
txtDeductibleCreditsStartDate.Value <> Null Then
Cancel = False
End If
End Sub
I only had the first "and" in my statement. The message came up but of
course that kept me in the same field so I had to add another and
txtDeductibleCreditsStartDate.value = Null...or something. I thought this
would work. I'm just learning this so I don't know what to do. How else can
I say a field has nothing in it? Thanks for the help.
Private Sub txtDeductibleCreditsStartDate_Exit(ByVal Cancel As
MSForms.ReturnBoolean)
If optMMOGroupYes.Value = True And optDeductibleCreditsYes.Value = True And _
txtDeductibleCreditsStartDate.Value = Null Then
MsgBox "The Deductible Credits Start and" _
& vbCrLf & "End Dates must be entered."
Cancel = True
ElseIf optMMOGroupYes.Value = True And optDeductibleCreditsYes.Value =
True And _
txtDeductibleCreditsStartDate.Value <> Null Then
Cancel = False
End If
End Sub
I only had the first "and" in my statement. The message came up but of
course that kept me in the same field so I had to add another and
txtDeductibleCreditsStartDate.value = Null...or something. I thought this
would work. I'm just learning this so I don't know what to do. How else can
I say a field has nothing in it? Thanks for the help.