jonathanchye
Registered User.
- Local time
- Today, 14:39
- Joined
- Mar 8, 2011
- Messages
- 448
Maximum number of controls in a form
Hi all,
I edited my original question as I've done some more reading and also experienced strange new issues so I hope someone more experienced could offer some advice.
Scenario : I was happily working away in my form one evening and while in the middle of a cut and paste session (I had to create 8x8 unbound textboxes) I had an error saying "Maximum number of controls exceeded"
Form design : Form is split into two main sections, one contains around 10 textboxes/comboxes and the other section contains a tab control with 6 tabs so far
Access version : MS Access 2010
Solution tried : I've created a simple macro that counts number of controls in a form. It shows 977. I've compacted and repaired database and it seems that I can create more controls fine now. I haven't tried to actually "use" the controls but I can create them and save fine. The count still shows 977.
I then create a completely new DB and only copied over the named form. I tried the macro again and it still showed the same number (977). I also seem to be able to add new controls fine.
Question : To my understanding the absolute maximum is 754 controls in a single form (over lifetime?) How do I find out exactly how many controls I have now? How would I possible know how many controls I will be able to create further?
And most important question of all, why can I have 977 controls in my form without any errors?
Hi all,
I edited my original question as I've done some more reading and also experienced strange new issues so I hope someone more experienced could offer some advice.
Scenario : I was happily working away in my form one evening and while in the middle of a cut and paste session (I had to create 8x8 unbound textboxes) I had an error saying "Maximum number of controls exceeded"
Form design : Form is split into two main sections, one contains around 10 textboxes/comboxes and the other section contains a tab control with 6 tabs so far
Access version : MS Access 2010
Solution tried : I've created a simple macro that counts number of controls in a form. It shows 977. I've compacted and repaired database and it seems that I can create more controls fine now. I haven't tried to actually "use" the controls but I can create them and save fine. The count still shows 977.
I then create a completely new DB and only copied over the named form. I tried the macro again and it still showed the same number (977). I also seem to be able to add new controls fine.
Question : To my understanding the absolute maximum is 754 controls in a single form (over lifetime?) How do I find out exactly how many controls I have now? How would I possible know how many controls I will be able to create further?
And most important question of all, why can I have 977 controls in my form without any errors?
It seems someone I've hit the maximum number of controls in my form (most of it unbound textboxes). I am thinking of adding subforms inside my main form and try to put some of the controls inside the subform. Will this help?
edit: Sorry , to be more specific, I have a tab control with 5 tabs. If I created one subform in each tab and copy/paste my current controls inside the subform - will it help?
edit2: This is really weird! I've tried to create more controls again and I've no errors when saving. The last time it warned me that I have exceeded the number of controls on a form. I used the Forms.FRMNAME.controls.count and it shows 980!
My form structure is split into two main sections. I have around 20 controls in the top section and the bottom section is made up of 5-6 tabs with the rest of the controls.
Can anyone explain what is going on here
Last edited: