[AccessD] select entire contents of text field

Steve Schapel miscellany at mvps.org
Wed Jun 13 17:46:34 CDT 2007


Billy,

Try it like this, on the Click event of the control...

   With Me.NameOfControl
      .SelStart = 0
      .SelLength = Len(.Text)
   End With

Regards
Steve


Billy Pang wrote:
> Hello:
> 
> In Access 2003, is it possible to select the entire contents of a text
> field by clicking it (not tabbing into it).  Tabbing into a text field will
> select the entire contents of the field but not when clicking into it so I
> am wondering if it is possible to emulate that.
> 
> Thanks in advance
> 
> Billy



More information about the AccessD mailing list