Text "Non" Select

O

Oly

Friends,

In an Access form, when one tabs to each of the fields the text in each
field is automatically selected. Can anyone help me with the code to tab to
the field to permit a user to add new text to the end of text already in the
field instead of replacing the text already in the field.

Thanks
 
W

Wayne Morgan

First, it depends on how many fields you want to do this for. If it is most
of the fields, check Tools|Options|Keyboard Tab|"Behavior entering field".

For just a few controls, you would use the SelStart property in the Enter
event of the control.

Me.txtMyTextbox.SelStart = Len(Me.txtMyTextbox.Text)
 
Top