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

Cursor position on entering text box

P: 1
On my form (Access ver 14.0.7194.5000 from Ofc Professional 2010), when I tab from text box to text box, it selects the entire contents of the box (even the memo text box). So I hit "home" to go to the beginning of the field, but it takes me to the first field on the form. How do I get it to go to the beginning (or end!) of the field, NOT highlighting the whole field? For that matter, why doesn't "home" or "end" work within the box?
Feb 18 '18 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 15k+
P: 31,419
There are different modes Nancy.

When you are changing data within a Control on a Form then hitting Home / End / etc. would probably work as you expect them to. When the whole Control is selected though, it usually means you are not in that mode. Home and End will take you to the first and last Controls in that Section of the Form instead.

Typically, using F2 (and even Shift-F2 to open the Zoom box) will allow you to edit within a Control. Clicking within the displayed data will have a similar effect.

Also, if you go into the Options of Access you'll find a Keyboard section where you can change the Behavior entering field. Here you can specify how you want it per installation of Access. These items can also be changed programitically but etiquette usually requires leaving these settings as you find them unless the owners of the PCs (EG Owners of the business.) express a requirement that they be set a particular way.
Feb 19 '18 #2

Expert 100+
P: 634

Not sure if this is relevant to your situation, but there is a setting in Options -> Advanced where you can set the default 'Behaviour entering field' to: Select entire field, Go to start of field or Go to end of field.

This is in A2007 (should be similar in later versions?).



ps: textbox (and others?) have .SelStart, .SelText and .SelLength properties which may or may not be useful.
Feb 19 '18 #3

Post your reply

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