G
Guest
I would like to load the controls on a tab page when the tab is clicked or
entered. I put code on the click event for that tab with no results.
Here is the code on the click event:
Private Sub ClinStage_Click()
Dim fBOSC As Form
Set fBOSC = Me.frmBrOncSubClin.Form
fBOSC.pAilmentID = mlngAilmentID
fBOSC.LoadForm
End Sub
LoadForm is a public sub on the frmBrOncSubClin form.
This same code works fine when I use it on entering the main form, so I know
that the LoadForm code is fine. But I prefer to load this subform only when
that tab is being used. What am I missing?
Thanks!!!
entered. I put code on the click event for that tab with no results.
Here is the code on the click event:
Private Sub ClinStage_Click()
Dim fBOSC As Form
Set fBOSC = Me.frmBrOncSubClin.Form
fBOSC.pAilmentID = mlngAilmentID
fBOSC.LoadForm
End Sub
LoadForm is a public sub on the frmBrOncSubClin form.
This same code works fine when I use it on entering the main form, so I know
that the LoadForm code is fine. But I prefer to load this subform only when
that tab is being used. What am I missing?
Thanks!!!