Talk About Network

Google





Software > Access Forms > Re: How do i do...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 46515 of 46786
Post > Topic >>

Re: How do i do a notnull statement? (If (IsNotNull(..) Then ...)

by =?Utf-8?B?aDNsbHo=?= <h3llz@[EMAIL PROTECTED] > Dec 3, 2008 at 04:37 AM

I've got this code and it is always returning true, even when the field is 
blank
    If Not IsNull(txtSuppliedProductID.Text) Then
            WHERE = " AND productID=" & txtSuppliedProductID.Text
        Else
            cmoSuppliedProductName.SetFocus
            If Not IsNull(cmoSuppliedProductName.Text) Then
                WHERE = " AND productID=" & cmoSuppliedProductName.Text
            End If
    End If
unless its not null, and is ""
"BruceM" wrote:

> In VBA:
> 
> If Not IsNull (Me.SomeField) Then
>     ' Do something
>     Else
>       ' Do something else
> End If
> 
> The Else part may not be needed, depending on the situation.
> 
> In the control source of a text box:
> 
> =IIf([SomeField] Is Not Null,"Not Null","Null")
> 
> In a query:
> 
> NewField: IIf([SomeField] Is Not Null,"Not Null","Null")
> 
> This will cause "Not Null" or "Null" to appear in the text box or query 
> field.  Substitute the actual actions you would have performed.
> 
> In all cases use the actual field name.  In the query you can name the
field 
> as you choose.  You don't need to use NewField.
> 
> "h3llz" <h3llz@[EMAIL PROTECTED]
> wrote in message 
> news:7BE40896-C135-47F7-BF35-21BDCD215260@[EMAIL PROTECTED]
> > How do i do a notnull statement? (If (IsNotNull(..) Then ...) 
> 
>
 




 5 Posts in Topic:
How do i do a notnull statement? (If (IsNotNull(..) Then ...)
=?Utf-8?B?aDNsbHo=?= <  2008-12-03 03:40:29 
Re: How do i do a notnull statement? (If (IsNotNull(..) Then ...
"BruceM" <ba  2008-12-03 07:13:30 
Re: How do i do a notnull statement? (If (IsNotNull(..) Then ...
=?Utf-8?B?aDNsbHo=?= <  2008-12-03 04:37:02 
Re: How do i do a notnull statement? (If (IsNotNull(..) Then ...
"Douglas J. Steele&q  2008-12-03 09:05:01 
Re: How do i do a notnull statement? (If (IsNotNull(..) Then ...
"BruceM" <ba  2008-12-03 09:12:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 16:53:39 PST 2009.