Good Day All.
I want my code to display a message if the value in the control is Null. I test the code with a Null value in the control and the message is not displayed; it just by-passes the if function code and goes on to the remainder of the module code.
Strange enough I tried the following contradiction:
if control = NULL
if not control = Null
if control = ""
If control <> ""
If control = 0
if control <>0
yet the if function is still ignored and the code after it is selected.
here is actual code I tried:
Private Sub SignIn_Click()
If Me.Text6 = Null Then
MsgBox "George"
Else
Msgbox "Michael"
End If
End Sub
MIchael is the message given under all the conditions listed above.
Can anyone help.
I want my code to display a message if the value in the control is Null. I test the code with a Null value in the control and the message is not displayed; it just by-passes the if function code and goes on to the remainder of the module code.
Strange enough I tried the following contradiction:
if control = NULL
if not control = Null
if control = ""
If control <> ""
If control = 0
if control <>0
yet the if function is still ignored and the code after it is selected.
here is actual code I tried:
Private Sub SignIn_Click()
If Me.Text6 = Null Then
MsgBox "George"
Else
Msgbox "Michael"
End If
End Sub
MIchael is the message given under all the conditions listed above.
Can anyone help.