Connecting Tech Pros Worldwide Help | Site Map

Conditional Tab Order?

basstwo@gmail.com
Guest
 
Posts: n/a
#1: Nov 13 '05
What is the syntax to use TabIndex? I want to have the tab order
change depending on the return of a Mid function.

jv
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Conditional Tab Order?


Me!Command1.TabIndex = 0
Me!TextBox1.TabIndex = 1

TabIndex is zero-based.

i didnt say that i dont think so
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Conditional Tab Order?


SEAN RICHARD MALLET,

18 Chalk Road,

Walpole st-Peter,

Wisbeech,

Camps,

Pe14 7pn.


MLH
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Conditional Tab Order?


Hmmm??? In design view, Access is forgiving (at least,
Access 97 seems to be). If I manually change a control's
tab index to 5 at a time when another control already has
an index value of 5, 97 'sees' it & automatically adjusts all
the other controls' index values for me.

But, I have not experimented and do not know for sure
whether this nicety is preserved in on-the-fly changes via
code, as it seems your objective might be. My guess is no,
it would not. Again, I haven't tested. But if I were considering
rolling this out, I think I would.
Trevor Best
Guest
 
Posts: n/a
#5: Nov 13 '05

re: Conditional Tab Order?


i didnt say that i dont think so wrote:[color=blue]
> SEAN RICHARD MALLET,[/color]

Any relation to Timmy?

--
[OO=00=OO]
Tim Marshall
Guest
 
Posts: n/a
#6: Nov 13 '05

re: Conditional Tab Order?


MLH wrote:
[color=blue]
> Hmmm??? In design view, Access is forgiving (at least,
> Access 97 seems to be). If I manually change a control's
> tab index to 5 at a time when another control already has
> an index value of 5, 97 'sees' it & automatically adjusts all
> the other controls' index values for me.[/color]

Same in 2003. I've not encountered it yet in 2003, but I have had
experience with forms in A97 with large numbers of controls where Access
seemed to get confused when I did the above, to adjust the "natural tab
order" of controls on a form. I'm used to seeing, say in the above
example, the current 5 and following numbers all advance 1 on their own,
retaining the current order. However, in some instances, as I've said,
this doesn't quite happen - the previous '5' would take up some
seemingly (I didn't investigate it thoroughly) random already existing
tab number.

As to the original poster, I would suggest instead of altering the tab
order, to try and do what he's doing by either enabling/disabling
controls after the return of the mid() function. Fiddling with tab
order seems fiddly to me.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Closed Thread