You wrote this?
Tim Rupp <[EMAIL PROTECTED]> wrote:
Use a SQL query 

SELECT *
FROM YourTableName
WHERE Staff LIKE '%test%'



-----Original Message-----
From: razher2000 [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 24, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: [vbhelp] Instr Help Required





Instr Help Required
AOA 

i got stuck with a problem while trying to use Instr Function in a
querry, what i want to get all the Records containg a particular
string in  a sprcified field and then display them in MSHFlex Grid. 

I m trying to use 
Exp1: Instr(1,<field name>,"test") 
for my database that is 
Exp1: Instr(1,[name],"test") 
here name is the field name.

but what i m getting is the first record 

how can i get all the records containg the word test in the field staff



HERE'S MY ANSWER:

if i were in your situation and you want to get all records which you need to see if 
there's a certain string you wanna find in a certain field using INSTR is a good idea. 
Well, have you tried querying:

Select * from tbl_name where INSTR(field_name,"[str_to_find]");

try these, man. i can assure you this work. just populate this in the grid okay. enjoy 
coding.



---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

[Non-text portions of this message have been removed]






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to