I have a form that looks for whether a job is active or not...some people type in "y", "N" or nothing at all. I need a message to pop up if the job is "N" or blank. My code runs fine with "Y", "N" but does not work for blank entries....this is my code, can someone please tell me what to put in to find the null values. I have tried, " ", isnull and null.
Dim varactive As Variant
varactive = DLookup("[Active Job]", "tbl Subcontractor Schedule", ("[jobno] = [Combo5]"))
If varactive = " " Or varactive = "N" Then
MsgBox "This is not an Active Job"
Else
End If
thank you,
Micki
Dim varactive As Variant
varactive = DLookup("[Active Job]", "tbl Subcontractor Schedule", ("[jobno] = [Combo5]"))
If varactive = " " Or varactive = "N" Then
MsgBox "This is not an Active Job"
Else
End If
thank you,
Micki