Controls on a form indexed?

  • Thread starter Thread starter SAC
  • Start date Start date
S

SAC

Access 2000

Microsoft Knowledge Base Article - 210252: How to Use Code to Cycle
Through the Controls on a Form shows how to loop through the controls on a
form.

Are they "indexed?" I don't mean the tab index which determines the
navigation sequence.

Does this index determine the order in which they show up in the expression
builder?

If so, can I change the order of the index?

If so, how?

Thanks
 
I think the Control Index is simply used to number the item in the
(Controls) Collection of the Form and it doesn't mean that the Controls are
"indexed" (I guessed the implication is that there exists some ordering).

I have never tried to change this but my feeling is that it is not possible
and can have undesirable effects (if it is possible to change by code) since
Access itself re-number them. Try deleting one Control and you will see
that all Controls with higher indices than the deleted Control "move up".
 
OK, thanks.

Van T. Dinh said:
I think the Control Index is simply used to number the item in the
(Controls) Collection of the Form and it doesn't mean that the Controls are
"indexed" (I guessed the implication is that there exists some ordering).

I have never tried to change this but my feeling is that it is not possible
and can have undesirable effects (if it is possible to change by code) since
Access itself re-number them. Try deleting one Control and you will see
that all Controls with higher indices than the deleted Control "move up".
 
Back
Top