Text Box Cursor Positioning

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.
 
F

fredg

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])
 
D

Dirk Goldgar

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
 
D

Dave Ruhl

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.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top