Results 1 to 3 of 3
  1. #1
    slam7053 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    2

    Query problem! help! TIA

    Hi, I've been trying to get this to work for a while, but to no avail: Basically I want access to return every company in our database where the description has the words like "restaurant" "dining" "cafe" "bistro" etc. in it. However, I do NOT want access to return any companies where the description has the words "manufacture" "equipment" "furniture" etc.



    This is my query for the 'description':

    Like *restaurant* OR *dining* or like “*quick*”&”*service*” or like “*fast*”&”*food*” or like *cafe* or like *bistro* or like *food truck* or like *cantina* and not like *manufacture* and not like *linen service* and not like *equipment* and not like *furniture* and not like *suppl*


    Shouldn't this do what I want it to do? I've been trying to get this to work for like two hours this morning -_-'

    Any help would be greatly appreciated!

  2. #2
    slam7053 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    2
    NEVER MIND I JUST FIXED IT!

    Needed to put parentheses around the beginning part:

    (Like *restaurant* OR *dining* or like “*quick*”&”*service*” or like “*fast*”&”*food*” or like *cafe* or like *bistro* or like *food truck* or like *cantina* )and not like *manufacture* and not like *linen service* and not like *equipment* and not like *furniture* and not like *suppl*

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I don't think your syntax is correct. These are strings and will require quotes to surround the strings.

    Please post the full query.

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

Similar Threads

  1. Query problem with c#
    By udigold1 in forum Queries
    Replies: 1
    Last Post: 12-19-2010, 08:34 PM
  2. Query problem
    By lamkee in forum Queries
    Replies: 13
    Last Post: 12-12-2010, 10:30 PM
  3. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM
  4. Problem with query
    By maxx3 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 11:58 AM
  5. query problem
    By bhushan98 in forum Queries
    Replies: 1
    Last Post: 06-03-2009, 01:49 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