Results 1 to 4 of 4
  1. #1
    avarusbrightfyre is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2009
    Posts
    60

    Multiple Criteria in query not working

    I can run my query with one criteria just fine, but when I have two "event" criteria it simply ignores them both. Strangely, it still runs the date criteria. Here is what I have:



    Date Event
    >Date() Not "Event"
    >Date() Not "Event2"

    I've also tried <>"Event" which returns the same results. Am I missing something stupid or basic? I've been doing this a while and never had a problem with multiple criteria queries.

  2. #2
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    75
    If you have any other criteria set in your query you may need to copy the criteria down to the 2nd row in the query grid. OR keep both criteria on one line. Can you paste your query statement?

  3. #3
    avarusbrightfyre is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2009
    Posts
    60
    I guess I missed something basic. I ended up with this:

    >Date() in the date block and Not "Event1" And Not "Event2"

    I was trying to say Not "Event1" or "Event2". For whatever reason, using the word and plus adding another "not" seems to work. Why doesn't just putting "or" between them work?

  4. #4
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    75
    You can't use OR if you are trying to exclude both values. Your original query would be the equivalent of returning records first where Date > Date() and not Event1 (this would return Event2 records). and vice versa for the other statement. Hope that makes sense!

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

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  2. Replies: 9
    Last Post: 05-05-2011, 02:05 PM
  3. Replies: 6
    Last Post: 02-13-2011, 06:02 PM
  4. Replies: 3
    Last Post: 10-13-2010, 03:35 PM
  5. Replies: 0
    Last Post: 04-08-2010, 12:22 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