Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 14th, 2007, 10:24 AM
Authorized User
 
Join Date: May 2007
Location: Accra, Ghana, Ghana.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default HOW TO SEACRH FOR WORDS IN DATABASE

HELLO I NEED HELP ON HOW TO SEARCH FOR NUMBER ENTERIES OF A PARTICULAR WORD IN A DATABASE.
THAT IS THE NUMBER(A PARTICULAR WORD) ARE WITHIN A DATABASE.
SO AS TO ENABLE ME MAKE STATISTICS OF ENTRIES...
THNAK YOU. SAM



Reply With Quote
  #2 (permalink)  
Old May 14th, 2007, 10:31 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Something like this should work:

SELECT count(myColumn) from table where Contains(myColumn, 'Search Text')

Also do a google search on: Full Text Search. This should help you.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
  #3 (permalink)  
Old May 14th, 2007, 10:33 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hey there...

with some tunning this could help you:
Code:
SELECT COUNT(*) FROM Table_name WHERE field LIKE '%word_to_look_for%'
depending on your database % should be *.
Also replace red with your information...

This will count the number of rows that has your specific search. but if you want the numbers of entries inside a specific field you will need to use another way around...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
Reply With Quote
  #4 (permalink)  
Old May 14th, 2007, 01:55 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Say dextergaisie:
When you use all capital letters, it has the effect of shouting. To compound that by using bold as well makes your post hard to read—hard on the eyes.

Please observe the way the answers you got are formatted, and try to post questions formatted similarly.
Reply With Quote
  #5 (permalink)  
Old May 15th, 2007, 05:50 AM
Authorized User
 
Join Date: May 2007
Location: Accra, Ghana, Ghana.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by BrianWren
 Say dextergaisie:
When you use all capital letters, it has the effect of shouting. To compound that by using bold as well makes your post hard to read—hard on the eyes.

Please observe the way the answers you got are formatted, and try to post questions formatted similarly.
OK.Thamks for the advice.
Best regards dextergaisie.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trimming Words Nicky_uk Classic ASP Databases 5 February 21st, 2008 02:06 PM
spacing in between the words ramank Classic ASP Basics 1 November 20th, 2006 07:25 AM
why I can't use Chinese words? cash JSP Basics 4 February 19th, 2004 10:47 PM
generating words kozam C++ Programming 1 September 30th, 2003 12:55 PM
generating words kozam C++ Programming 1 September 30th, 2003 12:54 PM



All times are GMT -4. The time now is 09:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.