how about..
if instr(lcase(text1.text),"hello")<>0 then
'we found the word.
text2.text = "The word help was found in text1"
else
'we did NOT find the word.
text2.text = "The word help was NOT found!"
end if
Hope this helps you, or at least points you in some direction
Regards
Gaea
Tips, Snips, AddIn and some more
http://www.inficad.com/~gaea
Quote:
>I want to know how can I detect if a certain word is on the text Box:
>For example.
>I have a text1 / a text2 .
>if text1 has the word "help" then text2.text="There is the word Help on
>text1" else text2.text="no Word"
>Thanks