txt box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
how can I do following:
When cursor is in txt box and I press enter I want cursor to stay in that
txt box and to stay on the end of string.
So far I managed to force cursor to stay in a field but after enter whole
string in txt box gets selected and that is what I don't want.
Thanx

alek_mil
 
If you're doing this with VBA, use the SendKeys statement with F2.
 
That will not work. F2 will select the entire text box, but leave the cursor
at the beginning of whatever is in the text box.
 
For me, F2 puts the cursor at the end of the field in both Access and Excel.
It always has but you may be using a different version. BTW, that's SendKeys
{F2}.
That will not work. F2 will select the entire text box, but leave the cursor
at the beginning of whatever is in the text box.
If you're doing this with VBA, use the SendKeys statement with F2.
[quoted text clipped - 7 lines]
 
I was not able to reproduce what you are saying. I always avoid using
SendKeys. I do know that if you select Tools, Options, Keyboard, you can set
the Enter Key Behaviour to not move when it is pressed.

kingston via AccessMonster.com said:
For me, F2 puts the cursor at the end of the field in both Access and Excel.
It always has but you may be using a different version. BTW, that's SendKeys
{F2}.
That will not work. F2 will select the entire text box, but leave the cursor
at the beginning of whatever is in the text box.
If you're doing this with VBA, use the SendKeys statement with F2.
[quoted text clipped - 7 lines]
 

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

Back
Top