Computing.Net > Forums > Office Software > Access: move focus to end?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Access: move focus to end?

Reply to Message Icon

Name: mdelato
Date: February 13, 2004 at 23:08:29 Pacific
OS: WinXP
CPU/Ram: 1.5GHz/256 MB
Comment:

I know how to move focus around in Access Forms using SetFocus.... but how can I force the cursor to move to the end of a text box when it gets focus instead of highlighting the entire text inside? I hate that because it's tooo easy to delete the entire contents of a field instead of just adding text to the end which is 80% of the time what I want to do anyway. Is this a VB script command?



Sponsored Link
Ads by Google

Response Number 1
Name: seawatch
Date: February 15, 2004 at 14:09:03 Pacific
Reply:

It's been a long time but I believe there is a property box that will alllow you to set the cursor position to Left, Right, All.

Try that until someone gets you a better
answer.

Larry


0

Response Number 2
Name: johnt.001
Date: February 17, 2004 at 08:43:15 Pacific
Reply:

I believe that the F2 key will move the cursor to the end of the text in a field. You could run a macro when the field has focus using the SendKeys function and set the send to F2. Or you could write a module with the SendKey command:

SendKeys "{F2}", False


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Office 2002 send problem word needs to close



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Access: move focus to end?

VB Problem in Word 2000 www.computing.net/answers/office/vb-problem-in-word-2000/151.html

Combine multiple Word docs into a s www.computing.net/answers/office/combine-multiple-word-docs-into-a-s/3247.html

HOW2 Import Txt File to end COLUMNS www.computing.net/answers/office/how2-import-txt-file-to-end-columns/3817.html