David.Krebsbach said:
All the controls have a Tab Index and Tab Stop property. I only want
certain
Tab Stop = Yes, other Tab Stop = No. Regardless which setting, they all
insist on a Tab Index value (integer) - even if Tab Stop = No.
Yes, that's the way it's supposed to be. That way, you can manipulate the
TabStop property if you want, without having to renumber all the indexes.
Back in Form
view, the focus is set to the control with Tab Index = 0, and the tabs
flow
as intended until the last control with Tab Stop = Yes, then the tab
(focus)
disappears for several tabs (4-6 times) until finally returning to the
control with Tab Index = 0.
Where is the focus going during those extra tab keys? How do I get the
focus back to the Tab Index = 0 after finishing with Tab Index = 6 (my
last
desired tab stop)?
I'm not sure what's going on, but I would guess that you have some controls
that have their TabStop property set to yes, but you can't easily tell that
the controls have the focus. Maybe they are controls with Width and/or
Height set to 0 -- I do that sometimes, when I need a visible control on the
form that can receive the focus, but I don't want the user to interact with
it.
If you want to know where the focus is at some point when it seems to have
disappeared, press Ctrl+G to bring up the Immediate Window, and enter the
statement
?Screen.ActiveControl.Name
After you press enter, the name of the active control should be displayed on
the next line.
I'm sure it can be done with VB, but I would think the Tab Index / Tab
Stop
behaviors would be more straight forward than I'm experiencing - but then,
there is that little "MS" in front of Access 2007, isn't there!? ;-)
I have never found these properties to behave other than as I expect, so
before concluding that they don't, let's look deeper into what's going on.
Of course, Access 2007 *is* a thorough makeover of the program, and
certainly still has some bugs. But you're the first person I've heard from
so far suggesting that the tabbing functionality was among them.
Looking forward to the words of wisdom which "auto-magically" come from
this
forum!
Tsk. You're doomed. <g>