VB6 to work like Google?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 4
Reputation: Richard26 is an unknown quantity at this point 
Solved Threads: 0
Richard26 Richard26 is offline Offline
Newbie Poster

VB6 to work like Google?

 
0
  #1
Nov 14th, 2007
Hi, I need to build an MS Access database and include abstracts and articles. I then need to retrieve this information using Visual Basic. I would like to design it so that when someone types in a word in a search facility then relevant info would appear just like in Google ie. not just the keyword but a few lines. Please can you help Thanks Richard
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 544
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: VB6 to work like Google?

 
0
  #2
Nov 14th, 2007
Ive done it in access itself, not with VB.

In access I made a query and made the SQL starement so it said SELECT (whatever fields) from (tablename) WHERE (search field) LIKE (searchterm)

searchterm was supplied by the user and the output of the query was displayed in a report

in my case, i was searching a libary database for books by title
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 4
Reputation: Richard26 is an unknown quantity at this point 
Solved Threads: 0
Richard26 Richard26 is offline Offline
Newbie Poster

Re: VB6 to work like Google?

 
0
  #3
Nov 14th, 2007
Hi, that is great thanks. Could you possibly tell me what was the searchterm used to give me some idea how I should phrase my search term thanks Richard
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 544
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: VB6 to work like Google?

 
0
  #4
Nov 14th, 2007
Okay, so in my database I had a table saying:

BookID (Key)
BookName
BookPrice
BookSampleChapter

In MS Access the query was:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. SELECT books.BookID, books.BookName, books.BookPrice, books.SampleChapter
  2. FROM books
  3. WHERE (((books.BookName)=[Enter Book Name]));

In MS Access [Enter Book Name] presents the user with a dialog biox asking that question.

I then used the result of the query to make a report showing the books and thier details, which were similar to the search term

Im sure you could do the same thing in VB6 quute easialy.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,134
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: VB6 to work like Google?

 
0
  #5
Nov 16th, 2007
To succeed the most import thing is how you design your database and of course you have to use LIKE search.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC