Results 1 to 3 of 3
  1. #1
    MaineLady is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Aug 2014
    Posts
    46

    Defining Criteria

    I have a database in which 1 column has a multitude of codes. The codes are...


    S, C, O, A, J, eMail, and several that start with the letter "N".

    I want to create a query that will give me all of the records except the ones coded A, J, and eMail.

    How do I do that?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Open the query in design mode.

    In the Criteria row of the column withe the codes put: <>"A" And <> "J" And <> "eMail"
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Or as an alternative that might be easier to read, in the criteria put

    Code:
    Not In ("A","J","eMail")
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. VBA defining range based on value
    By Homegrownandy in forum Programming
    Replies: 17
    Last Post: 02-02-2017, 03:28 AM
  2. Defining With Object
    By Middlemarch in forum Programming
    Replies: 5
    Last Post: 04-02-2015, 07:42 AM
  3. Need help defining the relationship
    By ewong in forum Access
    Replies: 16
    Last Post: 08-27-2012, 05:48 PM
  4. defining and setting value of a varible?
    By meet_binay in forum Queries
    Replies: 5
    Last Post: 01-17-2011, 03:50 PM
  5. defining Criteria between two dates
    By tamu46 in forum Queries
    Replies: 1
    Last Post: 12-04-2010, 11:58 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