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

Supress printing subreport

Status
Not open for further replies.

jrabenhorst

IS-IT--Management
Apr 13, 2005
53
US
Hey everyone...

I have a report I've created with a sub-report built into it, but I only want the subreport to print if I have a check box checked within the main report. How can I go about doing this? Thanks.
 
Perhaps:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If FlagFieldName Then
    Me.[Subreport Control Name].Visible = True
Else
    Me.[Subreport Control Name].Visible = False
End If

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top