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!

Move to end of text field

Status
Not open for further replies.

Tommy408

Programmer
Apr 30, 2006
53
US
What's the VB code to move to the end of a filled text field?

Me![Orders].SetFocus just highlights/selects the text in the textfield.
 
How about:
Me.txtText.SelStart = Len(Me.txtText.Text)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top