• SQL query – search for null field (Access 2K SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » SQL query – search for null field (Access 2K SR-1)

    Author
    Topic
    #373580

    How do we query for null field using SQL in Access? I want to search for records with blank (unfilled) value in a certain field. I try statements like

    SELECT * FROM tblTable WHERE fldName LIKE ”
    or
    SELECT * FROM tblTable WHERE fldName LIKE ‘ ‘
    or
    SELECT * FROM tblTable WHERE fldName LIKE vbNullString
    without success.

    Can anyone help?

    Viewing 0 reply threads
    Author
    Replies
    • #600969

      SELECT * FROM tblTable WHERE fieldname IS NULL

      • #601026

        Thanks a lot for your help. It works. It puzzled why I couldn’t find the answer in common Access books available locally.

    Viewing 0 reply threads
    Reply To: SQL query – search for null field (Access 2K SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: