Good morning,
I'm using one main form that contains any number of subforms. Each subform will have more subforms within it. So it's a three layer cake. Parent, Sub, Subsub.
My question is about functions that run on the subsub forms. Should the functions be local to the subsub forms? Should all functions that run on subsub forms be located in subsub form code?
The reason I'm saying this and I'm confused trying to explain, is because currently I'm writting all functions on the parent forms. Then I call the functions by reference from the subsub forms. (me.parent.functionname).
The reason for this is I wanted to have as much code on one form as possible. This helps me to see everything that is happening in one place. Is this a less efficient way to code form functions? Will the subs have performance issues with having too much code?
For example. A Keyup Event on the subsub form won't filter the subsub form locally, instead it will call my filter function from the parent form.
There is no emergency here its just a code ethics question.
Thank you for the input.
Dan
I'm using one main form that contains any number of subforms. Each subform will have more subforms within it. So it's a three layer cake. Parent, Sub, Subsub.
My question is about functions that run on the subsub forms. Should the functions be local to the subsub forms? Should all functions that run on subsub forms be located in subsub form code?
The reason I'm saying this and I'm confused trying to explain, is because currently I'm writting all functions on the parent forms. Then I call the functions by reference from the subsub forms. (me.parent.functionname).
The reason for this is I wanted to have as much code on one form as possible. This helps me to see everything that is happening in one place. Is this a less efficient way to code form functions? Will the subs have performance issues with having too much code?
For example. A Keyup Event on the subsub form won't filter the subsub form locally, instead it will call my filter function from the parent form.
There is no emergency here its just a code ethics question.

Thank you for the input.
Dan