I have a form with a tab control and each tab page contains a subform. My question is how can I run an initialization code for a subform when the use clicks its tab. I tried the load event procedure but it would not work since the subform is loaded when the main form is loaded. I tried page.click() but it doesn't work either. Any idea?