Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Reporting services--Problem with the subreport

Reporting services--Problem with the subreport

Scheduled Pinned Locked Moved Database
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Payal_e_m
    wrote on last edited by
    #1

    Hi All, I have a table report which has 10 fields as cols.The last 2 fields come from 2 diffrent subreport, having a single field each. There are also 2 groups in this table. I have to limit the rows by checking each cell in a group is 0. If all the cells have got a 0 then hide the row. I can check for all the cells except the last 2(Subreport). Since the last 2 cells has only got 2 subreports instead of a textbox, as it is the case for the remaining 8 cells, i don't know how to check for data returning from a subreport. For all the other textboxes i have checked it as ReportItems!textbox1.value=0 Can anyone help me with this Please? Thanks & Regards, Payal

    P 1 Reply Last reply
    0
    • P Payal_e_m

      Hi All, I have a table report which has 10 fields as cols.The last 2 fields come from 2 diffrent subreport, having a single field each. There are also 2 groups in this table. I have to limit the rows by checking each cell in a group is 0. If all the cells have got a 0 then hide the row. I can check for all the cells except the last 2(Subreport). Since the last 2 cells has only got 2 subreports instead of a textbox, as it is the case for the remaining 8 cells, i don't know how to check for data returning from a subreport. For all the other textboxes i have checked it as ReportItems!textbox1.value=0 Can anyone help me with this Please? Thanks & Regards, Payal

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      Subreport report items have a NoRows property. You can check its value to determine whether any data has been returned for the subreport.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      P 1 Reply Last reply
      0
      • P pmarfleet

        Subreport report items have a NoRows property. You can check its value to determine whether any data has been returned for the subreport.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        P Offline
        P Offline
        Payal_e_m
        wrote on last edited by
        #3

        Thanks Paul :) . Can this property be checked from the main report? I don't know how to refer the subreport from the main report...Like ReportItems!txtbox1 is there options for referring to a subreport also? It will be really helpful if u could help me out with some examples as i am coming across this for the first time. Cheers Payal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups