Hello,
I have a module created that uses the screen.activeform property to look up a series of integers to color each form to a user's custom preferences (i.e Header backcolor, text, buttons, etc.)
My module works great when a form is a parent form, but I get an error that the form needs to be active when the form has a subform. From what I understand, the subform is not actually the form but a control and the subforms load up before the rest of the main form.
So to make this work currently I have to put the entire code of the module in the on load event of the subform replacing screen.active to me.form. I have tried adjusting the module to me.form rather than screen.active, but that gives some addition complications.
My question is where or how do i prompt the subform to run the module so that I can keep from pasting the entire code in each subform?
Thank you
I have a module created that uses the screen.activeform property to look up a series of integers to color each form to a user's custom preferences (i.e Header backcolor, text, buttons, etc.)
My module works great when a form is a parent form, but I get an error that the form needs to be active when the form has a subform. From what I understand, the subform is not actually the form but a control and the subforms load up before the rest of the main form.
So to make this work currently I have to put the entire code of the module in the on load event of the subform replacing screen.active to me.form. I have tried adjusting the module to me.form rather than screen.active, but that gives some addition complications.
My question is where or how do i prompt the subform to run the module so that I can keep from pasting the entire code in each subform?
Thank you