By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,154 Members | 2,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,154 IT Pros & Developers. It's quick & easy.

Text selection in a text box

P: 15
Dear all , am facing a problem in Access 2003 , it may be easy but i couldnt find a solution to it , in a form when you move from one control to another the text in a text box is selected by default , is there a way to avoid the text selection when the text box get the focus?
Nov 29 '06 #1
Share this Question
Share on Google+
4 Replies


Expert 5K+
P: 8,434
Dear all , am facing a problem in Access 2003 , it may be easy but i couldnt find a solution to it , in a form when you move from one control to another the text in a text box is selected by default , is there a way to avoid the text selection when the text box get the focus?
This is from VB6, but may work in Access too.
In the Text1.GotFocus event...
Expand|Select|Wrap|Line Numbers
  1. Text1.SelLength = 0 
Nov 29 '06 #2

P: 15
this must be done for each text box or combobox in the program is there any other setting that can be done to avoid righting this for each control , the problem is that i have a very large program that was programed using Access 97 , the higlighting property wasnt valid i guess but now i upgrade the program to access 2003 and the higlighting property is causing troubles for the users , is there any global property or setting to avoid this.
Nov 29 '06 #3

Expert 5K+
P: 8,434
this must be done for each text box or combobox in the program is there any other setting that can be done to avoid righting this for each control , the problem is that i have a very large program that was programed using Access 97 , the higlighting property wasnt valid i guess but now i upgrade the program to access 2003 and the higlighting property is causing troubles for the users , is there any global property or setting to avoid this.
I'm using Access 2000 at home, but I just found an option under the Keyboard tab, Behavior entering field - settings are:
  • Select entire field
  • Go to start of field
  • Go to end of field
This sounds like what you're after, if you can find it in Access 2003.
Nov 29 '06 #4

P: 15
yes this work thanks a lot , you are the one
Best regards
Nov 29 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.