Results 1 to 5 of 5
  1. #1
    CDobby is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2014
    Posts
    2

    Query where it only shows those with specific criteria in a cell (that criteria is being blank)


    I am very out of practice with Access
    I have an existing table with numerous queries etc I have managed to add a new field to the table and forms. I now want to run some new reports but only showing certain data if criteria is specific, so assume I first have to run a query then maybe link that query to a report to print?

    I cannot upload a portion of the table for you to see as the data is sensitive. Basically have a table that lists missing people with numerous columns for personal details, date of referral, last known address and other criteria to record. One column is to insert the date found. I want to run a report/query to show those that are still missing or do not have a date in the Date in the Found box (they are blank). I am in design view of the query and there is the Criteria. I tried typing in "" as the cell is blank (no date) but it didn't like it. How do I select data based on a cell being empty. Or have another cell to populate as Active if it is blank or Closed if it has a date in it.
    Thanks.



  2. #2
    CCM is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    3
    try typing IsNull under Criteria.

  3. #3
    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
    Actually, it would be Is Null - with a space.
    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.

  4. #4
    CDobby is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2014
    Posts
    2
    Thank you CCM and June7. Worked straightaway. I will slowly pick it up again. Many thanks. Chris

  5. #5
    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
    Might find this of interest http://allenbrowne.com/casu-12.html
    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.

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

Similar Threads

  1. Referring to a cell with a date in query criteria
    By Historypaul in forum Queries
    Replies: 5
    Last Post: 06-08-2014, 03:54 PM
  2. Replies: 2
    Last Post: 10-19-2012, 01:44 AM
  3. Select Query on Criteria or Blank?
    By batowl in forum Queries
    Replies: 4
    Last Post: 08-17-2011, 02:34 PM
  4. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  5. specific criteria using forms for a query
    By timmah in forum Queries
    Replies: 7
    Last Post: 10-14-2010, 03:43 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