Results 1 to 3 of 3
  1. #1
    mattc66 is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2021
    Posts
    3

    Not Like criteria is going to drive me nuts!

    I have a query and a criteria of " Not Like 7" and "Not Like 8" without quotes. If I type that and or use the AND it shows just 7 and 8. If I remove one and just type Not Like 7 then it doesn't show 7. and If I just do Not Like 8 then 8s don't show. What the heck. I am using O365. I have used this in the past without the issue on different date.



    The data type is a number. Its a link to data from a SQL view link.

    Anyone have an idea on what I am doing wrong?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,735
    Try
    ... Not yourField in (7,8)

    .. Not (yourfield = 7 or yourField =8)

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,421
    Orange is right. Drop the LIKE.
    What's LIKE 7? 7 is 7. Nothing else is LIKE it.

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

Similar Threads

  1. Append to SQL Driving Me Nuts
    By NewOldFella in forum Queries
    Replies: 6
    Last Post: 07-25-2018, 02:11 AM
  2. this is driving me nuts
    By Raleyoz in forum Access
    Replies: 20
    Last Post: 06-02-2015, 08:10 AM
  3. need code to copy one file from C drive to E drive
    By ChuckRS in forum Programming
    Replies: 5
    Last Post: 02-23-2015, 07:27 AM
  4. switchboard driving me nuts
    By bbxrider in forum Forms
    Replies: 4
    Last Post: 12-06-2014, 06:24 PM
  5. error 3075...making me nuts
    By graccess in forum Forms
    Replies: 24
    Last Post: 01-24-2014, 07:03 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