S
Sietske
Dear all,
I've got one main form and two subforms.
I'd like to switch between subforms using a button (instead of tabs, I
have my reasons for that).
Main form: frmMain
Subforms: frmSub1 and frmSub2
Location of subform label on main form: lblLocationSubform
Location of subform on main form: formLocationSubform
So far, I only succeeded in letting the button change the label, by
using
lblLocationSubform.Caption = "This title appears above the
subform"
What additional code do I need for letting the button change the
subform itself too?
The solution is probably very easy, but I just don't know in what
direction I should be looking.
I was thinking of using something like
formLocationSubform.Form.Something = Forms!frmSub1
Could one of you please help me out?
I've got one main form and two subforms.
I'd like to switch between subforms using a button (instead of tabs, I
have my reasons for that).
Main form: frmMain
Subforms: frmSub1 and frmSub2
Location of subform label on main form: lblLocationSubform
Location of subform on main form: formLocationSubform
So far, I only succeeded in letting the button change the label, by
using
lblLocationSubform.Caption = "This title appears above the
subform"
What additional code do I need for letting the button change the
subform itself too?
The solution is probably very easy, but I just don't know in what
direction I should be looking.
I was thinking of using something like
formLocationSubform.Form.Something = Forms!frmSub1
Could one of you please help me out?