I’m creating a form with multiple subforms. The subforms are hidden until a cmd button is clicked and hidden again when they are clicked again. How do I set it up so, the subform closes if they don’t click the cmd button to close it on their own?
This is what I’ve used to make the subform visible:
On Click [Event Procedure]
Private Sub cmdBranded06_Click()
If sfrm_BrandedFY06.Visible Then
sfrm_BrandedFY06.Visible = False
Else
sfrm_BrandedFY06.Visible = True
End If
End Sub