Place insertion point at end of field

S

SueD

I am using the SetFocus command to move to the desired
control on opening a form, but both this and the
GoToControl command selects the whole field. I would like
to put the insertion point at the end of the field ready
to start appending text.
 
G

Glenn

In the on GotFocus event of the field enter....

Me!FieldName.SelStart = Me!FieldName.SelLength

Rgds,
Glenn
 
M

MacDermott

There is a setting under Tools - Options named Enter Field Behavior, where
you can set this for all fields.

For a specific field, you can put code in the field's OnEnter event
procedure like this:
MyField.SelStart=len(MyField)

HTH
- Turtle
 

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