tab order

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to turn a tab sequence on and off. I need to keep serveral
controls out of the normal tab order from most of the agents. Only a few
agents have a need to enter data in these fields. Perhaps a double click in
the control could turn on the tab order for these seperate controls.

Any Ideas
 
sandrao said:
Is there any way to turn a tab sequence on and off. I need to keep serveral
controls out of the normal tab order from most of the agents. Only a few
agents have a need to enter data in these fields. Perhaps a double click in
the control could turn on the tab order for these seperate controls.


The only thing I can think of is to turn their TabStop
property on and off.
 
Yes, I realize that but I also want to be able to turn then on when the few
agents have to make enteries in these fields.
 
What is stopping you from doing that? If it's the code to
do it, then the double click event procedure would be like:

Me.[control a].TabStop = True
Me.[control b].TabStop = True
. . .

You might prefer to disable the controls so other users
can't just click in the field. (A disabled control can not
receive the focus so it is automatically skipped in the tab
order.)

Me.[control a].Enabled = True
Me.[control b].Enabled = True
. . .

If you don't want a disabled control to be grayed out, then
both disable and lock it.
 
Back
Top