I have a form that contains 2 option buttons (radio buttons) within the header section. These are part of an Option Group - so the option values are simply "1" or "2" depending on which button is selected.
In the main 'detail' section of the form is a Subform Container called "SubformContainer" (real creative I know).
I'm trying to design it so that, depending on which of those 2 option buttons is selected, the appropriate form will be displayed in that Subform Container portion.
This seems fairly simple, but for some reason it's not working.. No matter which option button is selected, the detail section of the form is blank.
Thoughts?
Code:
Private Sub frameProjectOptions_AfterUpdate()
Select Case Me.frameProjectOptions.Value
Case 1
Me.SubformContainer.SourceObject = "frmEDG_Project_Management_Subform_New"
Case 2
Me.SubformContainer.SourceObject = "frmEDG_Project_Management_Subform_All"
End Select
End Sub