I have subform that I only want to be visible in a parent form when the combo box has "Screening " selected. Here is my code. I'm not sure why this is wrong.
Private Sub cboEvent_Change()
If Me.cboEvent = "Screening" Then
Forms!Initial_Action_Donor_Center.Form.sfrmScreeningDetail.Visible = True
Else
Forms!Initial_Action_Donor_Center.Form.sfrmScreeningDetail.Visible = False
End If
End Sub
Initial_Action_Donor_Center is my parent form
sfrmScreeningDetail is my sub
Please Help!!!
Private Sub cboEvent_Change()
If Me.cboEvent = "Screening" Then
Forms!Initial_Action_Donor_Center.Form.sfrmScreeningDetail.Visible = True
Else
Forms!Initial_Action_Donor_Center.Form.sfrmScreeningDetail.Visible = False
End If
End Sub
Initial_Action_Donor_Center is my parent form
sfrmScreeningDetail is my sub
Please Help!!!