473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Conditional Tab Order?

What is the syntax to use TabIndex? I want to have the tab order
change depending on the return of a Mid function.

Nov 13 '05 #1
5 2041
jv
Me!Command1.TabIndex = 0
Me!TextBox1.TabIndex = 1

TabIndex is zero-based.

Nov 13 '05 #2
SEAN RICHARD MALLET,

18 Chalk Road,

Walpole st-Peter,

Wisbeech,

Camps,

Pe14 7pn.
Nov 13 '05 #3
MLH
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.
Nov 13 '05 #4
i didnt say that i dont think so wrote:
SEAN RICHARD MALLET,


Any relation to Timmy?

--
[OO=00=OO]
Nov 13 '05 #5
MLH wrote:
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.


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
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: neblackcat | last post by:
Would anyone like to comment on the following idea? I was just going to offer it as a new PEP until it was suggested that I post it here for comment & consideration against PEP 308. I'm far...
7
by: Guy Hocking | last post by:
Hi there, I have a problem in my ASP/SQL Server application i am developing, i hope you guys can help. I have a ASP form with list boxes populated by SQL tables. When a user selects a value...
62
by: Reinhold Birkenfeld | last post by:
Hi, after Guido's pronouncement yesterday, in one of the next versions of Python there will be a conditional expression with the following syntax: X if C else Y which is the same as today's...
3
by: Chuck Reed | last post by:
I am working on a sales report where I show weekly sales by category for each of the 52 weeks in the year. Each record in my table/report has the 52 weeks of sales in it. I want to highlight to top...
1
by: ammarton | last post by:
Hello all...I'm a bit new to working with Macros in Access so forgive me if the terminology I use is not accurate. To preface this, basically I am using a form on a replicated database so the...
12
by: wanghz | last post by:
Hi, Could I ask some questions about the conditional compilaion? Suppose I have three simple files: a.c, b.c and c.h /* --------a.c--------- */ #include <stdio.h> #include "c.h" int...
8
by: Olov Johansson | last post by:
I just found out that JavaScript 1.5 (I tested this with Firefox 1.0.7 and Konqueror 3.5) has support not only for standard function definitions, function expressions (lambdas) and Function...
1
by: lavu | last post by:
Is there any way to specify a different executable name for my project based on value that I have set in my conditional compilation constant. For eg: If I have FIRST specified in my conditional...
44
by: petermichaux | last post by:
Hi, I have been using the following line of code to create an object called "Serious" if it doesn't already exist. if (Serious == null) {var Serious = {};} This works in the scripts I use...
5
by: paulo | last post by:
Can anyone please tell me how the C language interprets the following code: #include <stdio.h> int main(void) { int a = 1; int b = 10; int x = 3;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.