S
S Jackson
I am trying to build an If Statement. I want a procedure to occur when two
different conditions are met:
If Me.HrgStart = Not Null And Me.HrgOutlook = False Then
. . . .
Else
MsgBox "Deadline Already Added to Outlook"
EndIf
But I find that it is testing for either/or condition and not a combination
of both. For instance, if the HrgStart control is Not Null, and the
Mr.HrgOutlook = False, the procedure will not run, I get the Else procedure.
If the Mr.HrgStart is Null and the HrgOutlook = False, I get the Else
Statement
I cannot get the procedure to run no matter what state the controls are in.
Both conditions have to be true for the procedure to run. If I create the
If statement as such:
If Me.HrgOutlook = False Then
. . . .
I get an error message when the code runs into an empty HrgStart Control.
(The control that contains my date).
Any thoughts?
TIA S. Jackson
different conditions are met:
If Me.HrgStart = Not Null And Me.HrgOutlook = False Then
. . . .
Else
MsgBox "Deadline Already Added to Outlook"
EndIf
But I find that it is testing for either/or condition and not a combination
of both. For instance, if the HrgStart control is Not Null, and the
Mr.HrgOutlook = False, the procedure will not run, I get the Else procedure.
If the Mr.HrgStart is Null and the HrgOutlook = False, I get the Else
Statement
I cannot get the procedure to run no matter what state the controls are in.
Both conditions have to be true for the procedure to run. If I create the
If statement as such:
If Me.HrgOutlook = False Then
. . . .
I get an error message when the code runs into an empty HrgStart Control.
(The control that contains my date).
Any thoughts?
TIA S. Jackson