Results 1 to 4 of 4
  1. #1
    slohombre is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    2

    Desire to exclude records that contain "Celery" or "Organic"

    Hi,all. Super basic question here but I have a database that has a "productdescription" column. In the fields under the "productdescription" column I want to exclude records that contain the words "Celery" and "Organic". How would I best do this in a query? Thanks for any help.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Here's a link to a procedure to do what you are asking. Link to Btab Exclude data.

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,530
    Use the following expression in the Criteria row of the ProductDescription column in your query:

    Code:
    <>"Organic" AND <> "Celery"
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    slohombre is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    2
    Thank you!!

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

Similar Threads

  1. Simple table relationships ("faces" to "spaces" to "chairs")
    By skydivetom in forum Database Design
    Replies: 36
    Last Post: 07-20-2019, 01:49 PM
  2. Replies: 12
    Last Post: 10-01-2018, 02:40 PM
  3. Replies: 2
    Last Post: 01-23-2017, 07:06 PM
  4. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  5. Replies: 1
    Last Post: 09-03-2014, 03:27 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