• Setting subreport to visible (Access 2K/SR1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Setting subreport to visible (Access 2K/SR1)

    Author
    Topic
    #357866

    How do you tell Visual Basic to set a subreport to Visible if the data is not Null? Example below works great for labels that are part of the main report:

    Dim blnResolved as Boolean
    blnResolved = Not IsNull(DateResolved)
    DateResolvedLabel.Visible=blnResolved

    HOWEVER, I’d like for it to also hide labels for the subreports that are null. How do I do that?

    TIA

    Viewing 0 reply threads
    Author
    Replies
    • #532538

      Check out the HasData property of the subreport in on-line help. That’s what it is intended for, to see if there is data in the subreport so you can display or hide it as appropriate.

    Viewing 0 reply threads
    Reply To: Setting subreport to visible (Access 2K/SR1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: