G
Gary
I'm trying to check to see if the user hasn't entered anything in two
text box controls.
First i tried the following: -
================================
If txblead.Value = "" And txbcompany.Value = ""
Then MsgBox "A lead without a contact? please try again"
Exit Sub
End If
=================================
this generated an error, so i thought perhaps i needed null instead of
a "" - so i tried the following: -
==================================
If txblead.Value Is Null And txbcompany.Value Is Null
Then MsgBox "A lead without a contact? please try again"
Exit Sub
End If
==================================
this generates an error to.
i need to check if BOTH fields are blank, and if they are then display
my message box and exit the code. If they are not both blank then
continue with the execution of my sub...
what am i doing wrong please?
thanks,
Gary.
text box controls.
First i tried the following: -
================================
If txblead.Value = "" And txbcompany.Value = ""
Then MsgBox "A lead without a contact? please try again"
Exit Sub
End If
=================================
this generated an error, so i thought perhaps i needed null instead of
a "" - so i tried the following: -
==================================
If txblead.Value Is Null And txbcompany.Value Is Null
Then MsgBox "A lead without a contact? please try again"
Exit Sub
End If
==================================
this generates an error to.
i need to check if BOTH fields are blank, and if they are then display
my message box and exit the code. If they are not both blank then
continue with the execution of my sub...
what am i doing wrong please?
thanks,
Gary.