Results 1 to 6 of 6
  1. #1
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84

    Not Like


    I do not know what i am doing wrong. I am trying to say show me everything that is not 666 in the Trans Code and does not contain the begining character of BR- and give me everything what is left. Need help on how to get the correct results not the ones below
    Attached Thumbnails Attached Thumbnails NOT BR.JPG   results not.JPG  

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You have them as "OR" - if you look to the left of the design, that is what it says. To make it AND it must go on the same line.

  3. #3
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84
    When i place it on the same line it also excludes the data that has nothing in it as well. I am going from 1,000 line to 200 and there are only like 5 that begin with BR-

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Not's are very complicated for the human brain to process! Another way of doing it is to create a query that does the opposite, i.e. shows all the records that you don't want, then in your main query exclude all of those.

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Enter the following Criteria on the same line:
    Under PENDING ACTIVITY: Is Null Or Not Like "BR-*"
    Under TRAN CODE: <>666

  6. #6
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84

    Thumbs up

    That worked.

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

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