(Q) When I enter a textbox on the form, Access automatically selects all
the text in that control. How do I automatically place the cursor at the end of the text
that's present there?
(A) Use the SelStart property of the control. For example, the following
code
Private Sub Description_Enter()
me!Description.SelStart = me!Description.SelLength
End Sub
placed behind the OnEnter Event of a control called Description on a
form ensures that when the control is activated, the cursor will automatically be placed
at the end of all the text present in the textbox.
|