to simulate using the END key to move your cursor to the line.
To simulate typing "WER-5", you'd do basically the same thing:
SendKeys("WER-5")
However, there are other ways to put text in a textbox. Most often used
is txtBox="TextToPutIn" . After assigning the text, you would then use
the SendKeys("{END}") to move the cursor.
Private Sub Text0_GotFocus()
Text0.SelStart = Len([Text0].Text)
End Sub
I have not used this extensively and it seems rather clumsy. I hope
someone else will have a better solution.
Me.txtNameOfTextbox.SelStart = 6
That should move the cursor to the end of the 6th character. If you want the
rest of the text highlighted, that can be done also by adding a SelLength
statement after the SelStart statement.
--
Wayne Morgan
MS Access MVP
<jo...@graham.ca> wrote in message
news:1137075035....@f14g2000cwb.googlegroups.com...