tab order

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
 
M

Marshall Barton

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.
 
G

Guest

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.
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top