SetFocus After Last Character

Lynn_AccessUser

Registered User.
Local time
Today, 09:04
Joined
Feb 4, 2003
Messages
125
I have a form with a memo field. The problem is that if I set a tab stop on that field or set the focus to that field on open or load all of the text is highlighted.

Instead of being highlighted, I would like the cursor to be automatically be placed right after the last character.
 
Put some code into the text field's Enter event:
Me.txtField.SelStart = Me.txtField.SelLength
 
Thanks, exactly what I was looking for.
 

Users who are viewing this thread

Back
Top Bottom