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

Conditional subreport

Status
Not open for further replies.

CTR

Technical User
Nov 15, 2001
42
US
I have a final report that has 5 subreports on it.

I want to suppress one of the subreports based on it's value.

The fianl report is "Donor Summary Report".

If the value of the subreport "Donor loss 56 query" is less than 200 I want it to have some default text instead, say "Not required".

Is this possible?

_____________

Cliff
 
Cliff
You might try the following approach.

1. Put an extra text box on the report. Let's call it txtNotRequired

2. In the Format event for the Detail section of the report, put something like...
Code:
If Me.YourSubreportName.Report!TextBoxNameThatContatinsTheValue < 200 Then
Me.YourSubreportName.Visible = False
Me.txtNotRequired = "Not Required"
Else: Me.rsubBreakdownFoodshelf.Visible = True
Me.txtNotRequired.Visible = False
End If

See if that will do it.

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top