Microsoft access: query with Null

Anonymous
2023-03-06T10:32:34+00:00

Hi, I am creating a Microsoft access query. I wish to filter 2 columns.

1st column: I want it to return rows that are null. I have indicated “=is null” under the criteria section but my entire data sheet page returns empty even though there are rows that are null for 1st column.

2nd column: I want it to return rows that only consist of numbers as this field contains both numbers and alphabets.

What would be the criteria/formula I can input for both columns in my query design?

Thanks in advance!

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2023-03-06T10:36:35+00:00
    1. Use Is Null, not "=Is Null", as criterium for the first field.
    2. Add a calculated field IsNumeric([YourMixedField]) having as criterium: True
    0 comments No comments
  2. Anonymous
    2023-03-06T15:23:41+00:00

    Hi GustavBrock,

    Thanks so much for your prompt response! Regarding #2: my calculated field is

    Revised PO:IsNumeric([Customer PO)]

    My criteria is: true.

    However when I run the data sheet view, that column displays “-1” for all rows.

    0 comments No comments
  3. Anonymous
    2023-03-06T15:54:22+00:00

    And what are those values not supposed to be numeric?

    It can read value like "2E10" as numeric ...

    0 comments No comments
  4. Anonymous
    2023-03-06T22:12:12+00:00

    as this field contains both numbers and alphabets.?

    not like *[a-zA-Z]*

    0 comments No comments
  5. Anonymous
    2023-03-07T00:16:46+00:00

    Hi Gustav,

    You’re right. Yes some fields contain items like 2lash123. But I want fields that solely contain numbers.

    Thank you.

    0 comments No comments