Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate a text box from a option group

Status
Not open for further replies.

mobuto

MIS
Aug 26, 2003
13
CA
My problem is that I have an option group with two option boxes, one says yes and the value is 1, and the other option box says no and the value is 2. What I want to do is that when a user clicks the option button yes, I want the focus to move to text box 98, otherwise, when the user clicks the option button no, I want the focus to move to text box 100. Do u have any tips?
 

Private sub option1_click(Index as integer)

if option1(0).value=true then
text1.setfocus
else
text2.setfocus
end if

end sub

Something like that???

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top