View selection formula - do not display docs if field is null.

Posted on 2005-04-15
Last Modified: 2013-12-18
Can anyone give me an example view selection formula that will only return documents if a field is populated?
I am unable to do this using 'simple search' functions.
Field name is JobNumber.

Thanks Guys,

Question by:scribla
    LVL 2

    Author Comment

    I ended up with this:

    SELECT (@If(@IsNull(JobNumber)=0;1;0))

    Works fine.

    Points to anyone who'd care to comment, maybe the above forumla is not very efficient? is there a better way?
    LVL 46

    Accepted Solution

    About your formula, the following might be equivalent:
        Select !@IsNull(JobNumber)

    But what do you mean with populated? If the field exists, but its content is "", is it then populated? Otherwise, the following formula should do
        Select JobNumber!=""
    LVL 2

    Author Comment

    Thanks sjef, by populated I mean the opposite of Null. Thanks for the code examples.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
    Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now