end of line

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?
 
K

Katrina

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
 
J

John Vinson

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
 

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