Text Box Cursor Positioning

  • Thread starter Thread starter Dave Ruhl
  • Start date Start date
D

Dave Ruhl

I would like to be able to set focus to a memo/text box
and have the cursor postioned after the last character.
Is this possible ? Thanks.
 
I would like to be able to set focus to a memo/text box
and have the cursor postioned after the last character.
Is this possible ? Thanks.

Yup!
Code the Memo control's Enter event:
Me![ControlName].SelStart =Len(Me![ControlName])
 
Dave Ruhl said:
I would like to be able to set focus to a memo/text box
and have the cursor postioned after the last character.
Is this possible ? Thanks.

With Me.txtMyTextBox
.SetFocus
.SelStart = Len(.Text)
End With
 
Thanks very much !!!
-----Original Message-----
I would like to be able to set focus to a memo/text box
and have the cursor postioned after the last character.
Is this possible ? Thanks.

Yup!
Code the Memo control's Enter event:
Me![ControlName].SelStart =Len(Me![ControlName])
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
 
Back
Top