Hi
Been struggling for a couple of days now, I want to reference a page called Completion on a tab control (TabCtl220) on a form called permittoworkform and select it - all this from a button on another form.
I don't want to put any code in the OnLoad event, for example, as I'd like to have other buttons linking to different pages on the same tab control of this form.
Been trying the following code behind click event of a label on my 'Switchboard' form:
DoCmd.OpenForm "permittoworkform"
'Forms!permittoworkform.TabCtl220.Pages("Completion").SetFocus
Error states: Method item of object Forms failed
Any assistance would be welcomed
Been struggling for a couple of days now, I want to reference a page called Completion on a tab control (TabCtl220) on a form called permittoworkform and select it - all this from a button on another form.
I don't want to put any code in the OnLoad event, for example, as I'd like to have other buttons linking to different pages on the same tab control of this form.
Been trying the following code behind click event of a label on my 'Switchboard' form:
DoCmd.OpenForm "permittoworkform"
'Forms!permittoworkform.TabCtl220.Pages("Completion").SetFocus
Error states: Method item of object Forms failed
Any assistance would be welcomed