943,829 Members | Top Members by Rank

Ad:
Sep 21st, 2005
0

Another problem.

Expand Post »
I have 3 text boxes and one command button on this form. Users are supposed to input something into text1 and text2 and click the command button for text3 to show the results. However I would like the programme to consider the values of text1 and text2 and based the results on that.

As long as text1 and text2 have even a particular part of a word that the user types in it should have a pre-determined result. Like say...the programme would respond to ANY words as long as it had the keywords "King" and "Little" in it.. If the user inputs "Adam King" and "Brian Littleton", just part of the two words should trigger the result as true, but if there is only one key word in only either one text or neither then the result should be false and depending on true or false the result is displayed in the text3 after the user inputs both values and clicks the button.

Yikes thats long...any one can help?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Lunaticrr is offline Offline
27 posts
since May 2005
Sep 22nd, 2005
0

Re: Another problem.

Hi,

I think this is what you were trying to say.......

pG
Attached Files
File Type: zip checkVB.zip (1.4 KB, 13 views)
Reputation Points: 24
Solved Threads: 6
Junior Poster in Training
purplegerbil is offline Offline
78 posts
since Apr 2005
Sep 22nd, 2005
0

Re: Another problem.

use instr.

if instr(text1.text, "little") Then variable = yes
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Command Prompt and Visual Basic
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VBA - Excel - sheet,range lookup with variables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC