How to set textbox to select content on click

  • Thread starter Thread starter Spidey3721
  • Start date Start date
S

Spidey3721

I want to be able to click on a textbox and immediately select the entire
string of contents, as opposed to only placing the cursor into the
textbox....

Anyone know how to do this? I am assuming that it is with an onclick event
procedure ?
 
Not necessarily... I believe that it is a setting in the
preferences dialog. I also believe that this setting can
be set by code, though I will have to do some research to
recall exactly how to do this. I know that your choices
are to have the cursor insert at the beginning of the
string, at the end of the string, or to select the entire
string upon activation. Mind you I typically work in
Access 2000, therefore my answer may be antiquated for
newer versions. What version of Access are you using?

-Steve Calamia
Graphic Designer & Publicist
"I influence the masses by design"
 
I am using Access 2002...


Not necessarily... I believe that it is a setting in the
preferences dialog. I also believe that this setting can
be set by code, though I will have to do some research to
recall exactly how to do this. I know that your choices
are to have the cursor insert at the beginning of the
string, at the end of the string, or to select the entire
string upon activation. Mind you I typically work in
Access 2000, therefore my answer may be antiquated for
newer versions. What version of Access are you using?

-Steve Calamia
Graphic Designer & Publicist
"I influence the masses by design"
 
In Access 2000 you can control this with the "SetOption" method. This allows
you to change the default options that were choosen in the Tools Menu,
Options, keyboard tab.
 
Back
Top