Hi, I have a main_form and a sub_form. I want to hide a warning_textfield of the main_form if the sub_form has no data:
I've tried to add this code on the Report_Open event:
Private Sub Report_Open(Cancel As Integer)
If Me.rpt_subForm.Report.HasData = False Then
Me.Warningfield.Visible = False
End If
End Sub
But this won't work, if anyone could show me a working example I would appreciate it alot!
I've tried to add this code on the Report_Open event:
Private Sub Report_Open(Cancel As Integer)
If Me.rpt_subForm.Report.HasData = False Then
Me.Warningfield.Visible = False
End If
End Sub
But this won't work, if anyone could show me a working example I would appreciate it alot!