J
Jay
I cam across a post on this board giving code on how to hide a subform
depending on if a check box was true or fals. I am trying to recreate and
can hide the subform based on the checkbox's initial value when opening the
form/subform, but if I check the checkbox to hide/unhide the subform, it does
nothing. Any suggestions on what I am missing.
Switch = checkbox field
ViewNoteForm = subform.
Private Sub Form_Current()
If Me!Switch = True Then 'checkbox on parent form
Me!ViewNoteForm.Visible = True 'subform
Else
Me!ViewNoteForm.Visible = False
End If
End Sub
depending on if a check box was true or fals. I am trying to recreate and
can hide the subform based on the checkbox's initial value when opening the
form/subform, but if I check the checkbox to hide/unhide the subform, it does
nothing. Any suggestions on what I am missing.
Switch = checkbox field
ViewNoteForm = subform.
Private Sub Form_Current()
If Me!Switch = True Then 'checkbox on parent form
Me!ViewNoteForm.Visible = True 'subform
Else
Me!ViewNoteForm.Visible = False
End If
End Sub