Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Banned Word List

Status
Not open for further replies.

L0stAngel

Programmer
May 5, 2005
58
US
Hello, I have a program that logs websites visited by the computer. The User, Time, Date, and Website are all stored in an SQL database table (tblInformation). I also have a banned list stored in tblBannedWords. How would I write a query that looked at each tblInformation record, and checked to see if tblInformation.Website contained one of the banned words in tblBannedWords.Words?
 
Sorry...accidentally hit send...

When a website contains a banned word, I want it to display only those sites (only those sites that contain a banned word)
 
Try the following:
SELECT tblInformation.Website, tblBannedWords.BannedWord
FROM tblBannedWords, tblInformation
WHERE (((tblInformation.Website) Like "*" & [tblBannedWords]![BannedWord] & "*"));


"Have a great day today and a better day tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top