Results 1 to 6 of 6
  1. #1
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199

    Having trouble creating using criteria which excludes more than one type

    Hello,

    I'm having trouble excluding "Apples" AND/OR "Pears" using a query of my table. I can only seem to exclude one at time with NOT. See screenshot of my query.

    Click image for larger version. 

Name:	query.png 
Views:	6 
Size:	3.8 KB 
ID:	18268

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Try this:
    Not Like "*Apples*"
    Not Like "*Pears*"
    HTH

  3. #3
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Dave, unfortunately that didn't work.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Hmm, Worked for me.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    You want to exclude all records that have either Apple or Pear?

    Maybe:

    Not In ("Apples", "Pears")
    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.

  6. #6
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Nailed it June7, that worked, thanks!

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

Similar Threads

  1. Replies: 3
    Last Post: 06-21-2013, 09:06 AM
  2. Replies: 10
    Last Post: 04-11-2013, 02:21 PM
  3. Replies: 1
    Last Post: 08-31-2012, 01:56 PM
  4. Creating a Relationship? (Having trouble)
    By lpmndcte in forum Access
    Replies: 3
    Last Post: 05-17-2012, 06:53 AM
  5. trouble creating correct criteria
    By pshawk in forum Queries
    Replies: 1
    Last Post: 02-12-2010, 01:52 AM

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