D
Dave Evans
I have some code that hides the my subforms if there are no records within
that subform
Private Sub Form_Current()
With Me![SubFormName].Form
.Visible = (.RecordsetClone.RecordCount > 0)
End With
End Sub
However when the form is switched to datasheet view it comes up with an
error message.
Is there a way to get this code to run in Form View Only?
that subform
Private Sub Form_Current()
With Me![SubFormName].Form
.Visible = (.RecordsetClone.RecordCount > 0)
End With
End Sub
However when the form is switched to datasheet view it comes up with an
error message.
Is there a way to get this code to run in Form View Only?