On Enter for Text Box

J

JT

Is it possible to program a macro to go to the end of the data when it enters
a text box.

I am populating a "comments" field with a date and a dash. When the user
tabs into the comment field, any existing data is selected in it's entirety.

I would like for the cursor to go to the end of any existing data
automatically.

Is this possible? Any suggestions would be appreciated. Thanks for the help.
 
K

Klatuu

If you want the cursor to go to the end of data in every control on every
form, then set it in your database options.
Tools->Options->Keyboard Tab
Under "Behavior Entering Field", select Go To End Of Field.

If you only want to do it in certain cases, see Help for the SelStart,
SelText and SelLen properties.
 
J

JT

Thanks for the help
--
JT


Klatuu said:
If you want the cursor to go to the end of data in every control on every
form, then set it in your database options.
Tools->Options->Keyboard Tab
Under "Behavior Entering Field", select Go To End Of Field.

If you only want to do it in certain cases, see Help for the SelStart,
SelText and SelLen properties.
 
Top