Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

sub query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
franky - 21 Nov 2005 20:11 GMT
I have a table called tblItems with a "itemDesc" text field.  I aso have a
table called tblExcludeTheseWords.   This table contains a list of words that
I would like to compare against the itemDesc field in tblItems and exclude
these records if a match is found in ANY part of itemDesc.  How would I
accomplish this?   I was trying somthing like this but its not working:

Select itemDesc from tblItems where itemDesc NOT IN (Select "ExcludeText"
from tblExcludeTheseWords)

Thanks in Advance!
John Spencer - 21 Nov 2005 21:47 GMT
This sounds like a case for a non-equi join.

SELECT Distinct ItemDesc
FROM tblItems LEFT JOIN tblExcludeTheseWords
  ON tblItems.ItemDesc LIKE "*" & tblExcludeTheseWords.ExcludeText & "*"
WHERE tblExcludeTheseWords.ExcludeText is Null

>I have a table called tblItems with a "itemDesc" text field.  I aso have a
> table called tblExcludeTheseWords.   This table contains a list of words
[quoted text clipped - 7 lines]
>
> Thanks in Advance!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.