Syntax...ya mean they tax that too??
Greetings:
I am trying to write a subroutine that gets triggered by clicking on an area before a "quote number" is filled in. Trouble is, my subroutine is coughing on the notion of "null", and I can't seem to get the syntax right. The line If J!QuoteNumber = Null is the problem. That gives me an error. = "" or = 0 are accepted, but they don't trigger the if correctly.
A debug.print command tells me that my field is in fact null (or has a value).
================================
Private Sub IsThereAQuoteNumber()
'This Subroutine looks for a quote number. If a quote number isn't there when a user fills in
'quote information, bad news. This is triggered by clicking on the quote detail info.
Dim J As Form
Set J = Forms!fMain
If J!QuoteNumber = Null Then
MsgBox "Don't fill in item details until you've assigned a quote number.", 48, "Warning"
End If
End Sub
================================
Thanks in advance.
Greetings:
I am trying to write a subroutine that gets triggered by clicking on an area before a "quote number" is filled in. Trouble is, my subroutine is coughing on the notion of "null", and I can't seem to get the syntax right. The line If J!QuoteNumber = Null is the problem. That gives me an error. = "" or = 0 are accepted, but they don't trigger the if correctly.
A debug.print command tells me that my field is in fact null (or has a value).
================================
Private Sub IsThereAQuoteNumber()
'This Subroutine looks for a quote number. If a quote number isn't there when a user fills in
'quote information, bad news. This is triggered by clicking on the quote detail info.
Dim J As Form
Set J = Forms!fMain
If J!QuoteNumber = Null Then
MsgBox "Don't fill in item details until you've assigned a quote number.", 48, "Warning"
End If
End Sub
================================
Thanks in advance.