Hide Subform if no records?

  • Thread starter Thread starter Pedro
  • Start date Start date
P

Pedro

Hi everyone
Does anyone knows if it is possible to hide the subform i
have in my form in case it has no records?
Tks in advance
Pedro
 
Pedro said:
Does anyone knows if it is possible to hide the subform i
have in my form in case it has no records?


No idea where you should place the code, but here it is:

Me.subformcontrol.Visible = _
Me.subformcontrol.Form.RecordsetClone.RecordCount > 0
 
Back
Top