Controls on a form indexed?

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
 
V

Van T. Dinh

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".
 
S

SAC

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

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

Top