S
Steve
I have several sub reports that on my main report. When
there isnt any data for a sub report, I need the sub
report to be skipped. Currently a blank page is created
with a page number. I was sent the code below, but I am
not sure what should be coded in the control
names/lblAlternate1Label I have 4 sub reports:
PGMRpt,CopybookRpt,ProcRpt,JCLRpt. Help!
-----------------------------------------------------------
You can use code in the On Format event of the section
containing the subreport like
Dim booHasData as Boolean
booHasData = Me.srptMySubreport.Report.HasData
Me.lblAlternate1Label.Visible = Not booHasData
Me.lblAlternate2Label.Visible = Not booHasData
Of course you will need to use your subreport and control
names.
there isnt any data for a sub report, I need the sub
report to be skipped. Currently a blank page is created
with a page number. I was sent the code below, but I am
not sure what should be coded in the control
names/lblAlternate1Label I have 4 sub reports:
PGMRpt,CopybookRpt,ProcRpt,JCLRpt. Help!
-----------------------------------------------------------
You can use code in the On Format event of the section
containing the subreport like
Dim booHasData as Boolean
booHasData = Me.srptMySubreport.Report.HasData
Me.lblAlternate1Label.Visible = Not booHasData
Me.lblAlternate2Label.Visible = Not booHasData
Of course you will need to use your subreport and control
names.