Checking for Nulls in Access

Posted on 2014-08-18
Last Modified: 2014-08-18

I have a where statement that needs to check :
Field A does not begin with "V"   or FieldA is null

What would the syntax be?
Question by:morinia
    LVL 10

    Expert Comment

    Try this:

    iif(left(fieldA,1)="V" OR FieldA is Null, ValueIfTrue, ValueIfFalse)

    Author Comment

    How would this be done if it is at the end of a query in a where clause not and if statement.

    I a trying to pull only those records where FIELDA does not begin with "V" OR FIELDA is null
    LVL 10

    Accepted Solution

    Oh! Try this:

    WHERE left(fieldA,1)="V" OR FieldA is Null

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 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

    22 Experts available now in Live!

    Get 1:1 Help Now