Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Seattle, Washington, USA
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting subreport to visible (Access 2K/SR1)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Setting subreport to visible (Access 2K/SR1)

    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.
    Charlotte

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Seattle, Washington, USA
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting subreport to visible (Access 2K/SR1)

    Exactly what I needed. Thanks.

    <img src=/S/joy.gif border=0 alt=joy width=23 height=23>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •