A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to position cursor at end of text in textbox?



 
 
Thread Tools Display Modes
  #1  
Old October 6th, 2006, 01:49 AM posted to microsoft.public.access.forms
Dean Slindee
external usenet poster
 
Posts: 32
Default How to position cursor at end of text in textbox?

On a tab control, when switching to the next tabpage, the data value in the
first text field located on that tabpage is generally highlighted with
reverse video.


This is annoying to the users. Is there any way to stop this behavior?

The field is selected, so the video is reversed. Is there a command that
will position the cursor at the end of any text than may be in the textbox.


The Tools|Options setting that should do this does not work on the first
textbox on a tabpage.

Thanks,

Dean S





  #2  
Old October 6th, 2006, 03:40 AM posted to microsoft.public.access.forms
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default How to position cursor at end of text in textbox?

Try putting:
Me.YourControlName.SelStart = Me.YourControlName.SelLength

in the OnEnter event of the control. Using YourControlName of course.

Dean Slindee wrote:
On a tab control, when switching to the next tabpage, the data value in the
first text field located on that tabpage is generally highlighted with
reverse video.

This is annoying to the users. Is there any way to stop this behavior?

The field is selected, so the video is reversed. Is there a command that
will position the cursor at the end of any text than may be in the textbox.

The Tools|Options setting that should do this does not work on the first
textbox on a tabpage.

Thanks,

Dean S


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.