Results 1 to 2 of 2
  1. #1
    Hedy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2014
    Posts
    2

    Exclude project numbers from a query

    Hello, I have created a very simple/basic query and would like to exclude project numbers that begin with a "3."

    Some project numbers begin with a 7, some begin with a "1," and some begin with a "3." The project numbers are also different lengths.

    Examples/samples of the project numbers:

    10175884 (8 integers long)
    7651679 (7 integers long)
    31724779 (8 integers long) NEED TO EXCLUDE THESE


    I am working in Design View and would like to simply add a "not" statement to exclude the project numbers that begin with a "3."

    Thank you

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    WHERE Left(myProjectNumber,1)<>3 ?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Query to exclude outliers
    By BRZ-Ryan in forum Queries
    Replies: 4
    Last Post: 03-19-2015, 09:05 AM
  2. Exclude IDs in grouped query
    By Ruegen in forum Queries
    Replies: 2
    Last Post: 09-02-2014, 09:27 PM
  3. Exclude TOP N records from query
    By gemadan96 in forum Queries
    Replies: 4
    Last Post: 06-15-2014, 10:11 AM
  4. exclude field in query
    By chrisy in forum Queries
    Replies: 2
    Last Post: 10-28-2011, 09:53 AM
  5. Replies: 1
    Last Post: 04-01-2010, 05:40 PM

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