SyntaxSocialist
Registered User.
- Local time
- Today, 19:52
- Joined
- Apr 18, 2013
- Messages
- 109
Form Corrupt? OnLoad event not firing
I have a form w/ subform. Both have event procedures tied to their respective OnCurrent events. What I'm trying to do is, when the main form loads, run a Public subprocedure that lives in the module for the main form. I've been able to create click events that successfully run the sub.
The problem is that the main form's OnLoad event isn't firing.
I've put in some break points and have been able to verify that the OnCurrent events work just fine, and so does the OnLoad event of the subform.
Even more perplexing: the main form's OnLoad event does fire when I close the form (and the subform's doesn't)! WHAT?
Can someone help me understand why I'm having this problem?
EDIT: AHA! So now I've discovered that the main form's OnLoad event fires as soon as I click into a control. Obviously, I want it to fire before that. Any ideas about the cause or a workaround?
I have a form w/ subform. Both have event procedures tied to their respective OnCurrent events. What I'm trying to do is, when the main form loads, run a Public subprocedure that lives in the module for the main form. I've been able to create click events that successfully run the sub.
The problem is that the main form's OnLoad event isn't firing.
I've put in some break points and have been able to verify that the OnCurrent events work just fine, and so does the OnLoad event of the subform.
Even more perplexing: the main form's OnLoad event does fire when I close the form (and the subform's doesn't)! WHAT?
Can someone help me understand why I'm having this problem?
EDIT: AHA! So now I've discovered that the main form's OnLoad event fires as soon as I click into a control. Obviously, I want it to fire before that. Any ideas about the cause or a workaround?
Last edited: