Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refer to a subreport

Status
Not open for further replies.

Leventcos21

Technical User
Oct 7, 2004
77
US
Hi,

I have a report that contains a subreport. If the subreport contains no data, I am going to have a marker visible on the main report.

Code:
 If Report.srptDiscrepency = False Then
    Label16.Visible = True
End If

Or I am thinking if a particular field on the subreport isnull then label16.visible is true.

I may be inputting the incorrect syntax for the report.

Thanks
 
You can use the HasData property.

[tt][Subreport Control Name].Report.HasData[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top