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!

Change focus from a text box after text has been written

Status
Not open for further replies.

mobuto

MIS
Aug 26, 2003
13
CA
I basically want a user to be able to write an answer to a question in a text box, after they write the text in the text box, I would like the focus to switch to another control when the user hits enter.
 

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii = vbKeyReturn Then Text2.SetFocus

End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top