Text Box to Appear Only if Subreport Displays

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want my unbound text box to display "Revision" only if one or both of these
subreports display:
srptProfilesRevisions
srptProfilesRevisionsProfiles.

How can I code the text box to do this?

Thanks!!!
 
Hi John

What causes the subreports to display or not display? Is it dependent on
whether they have any data?

If so, then you probably have code similar to this in your Detail_Format
event procedure:

srptProfilesRevision.Visible = srptProfilesRevision.Report.HasData
srptProfilesRevisionProfiles.Visible =
srptProfilesRevisionProfiles.Report.HasData

Just add some code then to test if either subreport is visible:

If srptProfilesRevision.Visible Or srptProfilesRevisionProfiles.Visible Then
' do whatever
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top