I have a report that has numerous subreports. These subreports are based on different tables that may or may not have data depending on the type of survey. So for any given report, certain subreports are empty with just a header page. I would like to have a text box (txtNoData) become visible that says "No information collected" when the subreport is empty. I have tried various routines within the subreport with the "On No Data" event which does display within the subreport but I would like to have the text box display on the main report but can't figure out the code to do it. Does anybody have any better suggestions.
The code I am using in the subreport is:
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo Err_Report_NoData
Me![txtNoData].Visible = True
Exit_Report_NoData:
Exit Sub
Err_Report_NoData:
MsgBox Err.DESCRIPTION, , "APPLICATIONS"
Resume Exit_Report_NoData
End Sub
Thanks.....Steve
The code I am using in the subreport is:
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo Err_Report_NoData
Me![txtNoData].Visible = True
Exit_Report_NoData:
Exit Sub
Err_Report_NoData:
MsgBox Err.DESCRIPTION, , "APPLICATIONS"
Resume Exit_Report_NoData
End Sub
Thanks.....Steve