Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Posts
    1,119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Correct Syntax (2003)

    I am using the following in a query: Like "*Security*" Or Like "*Freedom*" Or Like "*Signature*". That shows me all products that have those names in any part of the product name. What I want to do is to exclude the products that have those names as part of the product name. I was trying <> in front of Like but that didn't work. Is there a way to do this?

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Correct Syntax (2003)

    Try: Not Like "*Security*"
    Regards
    John



  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Correct Syntax (2003)

    If you want to select records that have none of these words in the product name, use

    Not Like "*Security*" And Not Like "*Freedom*" And Not Like "*Signature*"

    Note the use of And instead of Or.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •