S
swarfmaker
I'm trying to hide a subform unless a tickbox is checked on the parent form.
The following code does not work
Error says "Can't find Field subfrmSessions"
Code Start
Private Sub Form_Current()
If Me!SessionDates = True Then 'checkbox on parent form
Me!subfrmSessions.Visible = True 'subform
Else
Me!subfrmSessions.Visible = False
End If
End Sub
Code End
The following code does not work
Error says "Can't find Field subfrmSessions"
Code Start
Private Sub Form_Current()
If Me!SessionDates = True Then 'checkbox on parent form
Me!subfrmSessions.Visible = True 'subform
Else
Me!subfrmSessions.Visible = False
End If
End Sub
Code End