Making Subform visible based on field

dkkirk2000

Registered User.
Local time
Yesterday, 18:21
Joined
Jan 27, 2017
Messages
16
Hello,
I have a form with two subforms. I would like to hide one of the subforms when the field "CR Change Class" is Major A or B Change. This is what I got but it doesn't work

Private Sub Form_AfterUpdate()
If [CR Change Class] = "Major A Change" Then
Me.[Major A CRs Microplan subform].Visible = True
Else
Me.[Major A CRs Microplan subform].Visible = False
End If
If [CR Change Class] = "Major B Change" Then
Me.[CR Burndown Status Microplan subform].Visible = True
Else
Me.[CR Burndown Status Microplan subform].Visible = False

End If
End Sub

Thanks for the help!!
 
What exactly does "doesn't work" mean?
Do you get an error message? If so, what is number and description?
 
it doesn't hide the subform. that's what I'm trying to accomplish
 

Users who are viewing this thread

Back
Top Bottom