Results 1 to 4 of 4
  1. #1
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    Query for records that do not meet criteria


    I have a table called enroll
    The times are class times inmates are already in
    I need to enroll people who are open at 715 . If I query for the time =715 this gives me the people I cannot use. Leaving the rest availabe. I need a list of those who are available. If I query for <>715 it gives me the list of the people that I need but they might have a 715class
    Id1 645
    id2 715
    id3 945

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Would you post the SQL for your query?

    What is the field type of the field that has the time? And the field name?

    Do not use "Time" as an object name - it is a reserved word (and it is not very descriptive). Here is a list of reserved words:
    http://allenbrowne.com/AppIssueBadWord.html

  3. #3
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    I realized I was trying to pull up records that don't exist. When I changed my query to only pull up records that don't meet the time of my class I was okay. Thanks for looking and I changed time to time start

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Great!

    (you should also try to avoid using spaces on names)

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

Similar Threads

  1. Replies: 2
    Last Post: 11-28-2012, 10:47 AM
  2. Summing when no records meet criteria
    By clew3 in forum Queries
    Replies: 6
    Last Post: 11-05-2012, 11:37 AM
  3. Replies: 3
    Last Post: 09-12-2012, 02:57 PM
  4. Replies: 1
    Last Post: 07-01-2012, 09:55 AM
  5. Replies: 2
    Last Post: 03-31-2009, 11:15 AM

Tags for this Thread

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