If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > % like %

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-03, 11:50
sguy sguy is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
% like %

normally we do this in oracle

select * from staff where name like '%John%';

then how to do in the VB???

like this also cannot...how?

SQLstmt = "SELECT * FROM staff where name like ' % " & lblname.Caption & " % '"


and can somebody help me how to show the graph when i select from the combo box and click OK button?
or any article teach this?
Reply With Quote
  #2 (permalink)  
Old 12-01-03, 14:02
vududoc vududoc is offline
Registered User
 
Join Date: Jul 2001
Location: NC
Posts: 102
Since you didn't specify the DB or data entry object you're using, I'll give you generic information. The "----john-----" comes from a list box or combobox (multiple items) or a textbox (single item). Remove leading and trailing blanks from the selected string, and use the text property, not the caption property. Use of % or * wildcard depends on the DB. As for displaying graphs, you don't give enough background information to answer it. How do you generate your graphs? Do you display them in a web browser or on a standalone machine? What reporting package(s) are you using? Check MSVB Knowledgebase for information about displaying graphs.
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 On
Pingbacks are On
Refbacks are On