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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need output on blank report. "Page intentionaly blank"...

Status
Not open for further replies.

ifshmn

Technical User
Jul 31, 2006
2
US
I am finishing up building a report and have one last item to add. I am using multiple subreports and need each one that is blank to say "No activity for specified period" for each of those reports. I've tried going through the queries, or adding a text box to the report with the following text, but I either get an error (in report) or get nothing (in query).

IIf(IsNull([Details]),"No activity for this audit period.",[Details])

For compliance reasons, I need to know if there is no data and not a broken link of some sort.

Thanks!
 
I found the "on no data" report property, and can either print a seperate report that says "no data" or have a msg box appear, but I would much prefer it print directly in that section.
 
Have you considered the HasData property? For example:

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.[abc subreport].Report.HasData Then
    Me.txtMessage.Visible = False
Else
    Me.txtMessage.Visible = True
End If

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top