MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2004, 11:51 AM
PunkMC PunkMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 PunkMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need help with a search function

Hi, what I'm trying to do is find an instance of a word(s) that is submited via a search box. I need to search a field and if that word appears in the field, (say a Summary field), pull back all the data that goes with that record set. I've done this using like(%searchword%), using the word age as the search word and it will pull back any thing with age in it, such as rage. I've tried using the like('searchword'), but that would not pull anything back, even when I know there is age in one of the summary fields.

code sample: strSQLTest = "Select * from tbApplicants where Removed='" & 0 & "' AND ("
do while Not intCounter > intArraysize
strSQLApplicant = strSQLApplicant & "SummaryLike '%"&arrKeywords(intCounter)&"%'"

I was wondering if there is anything like InStr that might work, or a better way of going about this.

Any help on this would be greatly appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Need help with a search function


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT