end of line

  • Thread starter Thread starter malcolmmabe
  • Start date Start date
M

malcolmmabe

i want to be able to click on a 'remarks' field in a
database i've set up. i want the cursor to jump to the
end of the field when i click on it. whats the code?
 
I would try sending a keystroke to go to the end of the line in the on
gotfocus event procedure for the control Sendkeys vbkeyend

HTH
Kat
 
i want to be able to click on a 'remarks' field in a
database i've set up. i want the cursor to jump to the
end of the field when i click on it. whats the code?

You'ld use the SelStart property of the textbox: e.g.

Private Sub Remarks_GotFocus()
Remarks.SelStart = Len(Me!Remarks)
End Sub
 
Back
Top