[AccessD] select entire contents of text field

Billy Pang tuxedoman888 at gmail.com
Wed Jun 13 18:10:46 CDT 2007


it worked! thanks Steve!

Billy


On 6/13/07, Steve Schapel <miscellany at mvps.org> wrote:
>
> 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
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>



-- 
Billy Pang
http://dbnotes.blogspot.com/
"Once the game is over, the King and the pawn go back in the same box." -
Italian proverb



More information about the AccessD mailing list