Results 1 to 3 of 3
  1. #1
    floyd is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    66

    Simple "Or is null" Criteria question

    I have three fields I am running a query on.


    In the Criteria boxes I have the following.

    [forms]![3_qryFile]![FilesTopicCB]
    [forms]![3_qryFile]![FilesAudienceCB] Or Is Null
    [forms]![3_qryFile]![FilesDeliveryCB] Or Is Null

    If I put WORKING parameters in the boxes, the query works.
    If I leave any of them blank it does not.
    Now here is the kicker...

    It was working last night and today when I opened Access... it no longer does!!!

    PLEASE HELP!

    What am I missing?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Try with Like and wildcard.

    Like [forms]![3_qryFile]![FilesTopicCB] & "*"
    Like [forms]![3_qryFile]![FilesAudienceCB] & "*" Or Is Null
    Like [forms]![3_qryFile]![FilesDeliveryCB] & "*" Or Is Null
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    floyd is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    66
    THIS WORKED!!!

    [forms]![3_qryFile]![FilesTopicCB]

    Like "*" & [forms]![3_qryFile]![FilesAudienceCB] & "*" Or Is Null

    Like "*" & [forms]![3_qryFile]![FilesDeliveryCB] & "*" Or Is Null

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 11-13-2013, 08:56 AM
  2. Replies: 4
    Last Post: 04-18-2012, 12:09 PM
  3. Passing criteria "NULL" or "IS NOT NULL" to a query
    By SgtSaunders69 in forum Forms
    Replies: 1
    Last Post: 12-24-2011, 02:22 AM
  4. StrComp causing "Invalid use of Null" error
    By sephiroth2906 in forum Programming
    Replies: 5
    Last Post: 09-15-2011, 07:06 PM
  5. Replies: 8
    Last Post: 02-24-2010, 01:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums