B
Bryan Hughes
Hello,
I have a Option Group on a Page Ctl inside of a main form. What I would
like to do is depending on the selection of the option group, load a subform
in a unbound subform on this Page Ctl. How can I do this?
Here is the code I have been trying to use:
Private Sub ctlCPPS_Click()
Select Case Me!ctlCPPS
Case 1
Me!subCPPreSch.SourceObject = Forms!subfrmCare_Provider
Case 2
Me!subCPPreSch.SourceObject = Me!subfrmPreschool
Case 3
Me!subCPPreSch.SourceObject = Me!subfrmSchool
End Select
Me!subCPPreSch.Visible = True
End Sub
Please Help!
I have a Option Group on a Page Ctl inside of a main form. What I would
like to do is depending on the selection of the option group, load a subform
in a unbound subform on this Page Ctl. How can I do this?
Here is the code I have been trying to use:
Private Sub ctlCPPS_Click()
Select Case Me!ctlCPPS
Case 1
Me!subCPPreSch.SourceObject = Forms!subfrmCare_Provider
Case 2
Me!subCPPreSch.SourceObject = Me!subfrmPreschool
Case 3
Me!subCPPreSch.SourceObject = Me!subfrmSchool
End Select
Me!subCPPreSch.Visible = True
End Sub
Please Help!