Solved

Reorder all controls in form

Posted on 2014-01-06
2
386 Views
Last Modified: 2014-01-06
Hi Experts,

I'm using code

For Each ctl In Forms... to change the name of all the controls in a form.
That works fine, the problem is that the controls are in the wrong order, how do I change that? Changing the Tab Order doesn't work.

Gary
0
Comment
Question by:tbsgadi
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39759301
The controls show up in the controls collection in the order they were created, so if you want to loop through them in a specific sequence (tab order), you are probably going to have to setup a temp table to store the name of the control and the tab order.  

Then create a recordset based on that table and sorted by tab order to get them in the sequence you want them in, before doing your sequential renumbering.
0
 
LVL 46

Author Closing Comment

by:tbsgadi
ID: 39759498
Thanks, I just found it easier to add the textboxes from scratch.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now