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. General Programming
  3. Visual Basic
  4. Filtering data on a report

Filtering data on a report

Scheduled Pinned Locked Moved Visual Basic
questiondesignhelp
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.
  • D Offline
    D Offline
    dptalt
    wrote on last edited by
    #1

    I'm using a table in the report design to display child records on a report. The data table the report table is using has many records in it, however, I only want the report table to display certain records from this data table. How can I go about doing this? Thanks for any help on this matter.

    G 1 Reply Last reply
    0
    • D dptalt

      I'm using a table in the report design to display child records on a report. The data table the report table is using has many records in it, however, I only want the report table to display certain records from this data table. How can I go about doing this? Thanks for any help on this matter.

      G Offline
      G Offline
      Guerven
      wrote on last edited by
      #2

      hi, have you tried using a dataview? you can create a dataview and link that to the datatable. set the rowfilter property of the dataview. example dim DV as new dataview DV.table = MyTable DV.rowfilter = " field1 = 'something'" you can assigne simple criteria to the rowfilter property. then you can set the reports datasource to the view MyReport.setdatasource(DV) hence the new report source will have a filtered set of record.

      U Xux

      D 1 Reply Last reply
      0
      • G Guerven

        hi, have you tried using a dataview? you can create a dataview and link that to the datatable. set the rowfilter property of the dataview. example dim DV as new dataview DV.table = MyTable DV.rowfilter = " field1 = 'something'" you can assigne simple criteria to the rowfilter property. then you can set the reports datasource to the view MyReport.setdatasource(DV) hence the new report source will have a filtered set of record.

        U Xux

        D Offline
        D Offline
        dptalt
        wrote on last edited by
        #3

        No I have not. I'm using the reportviewer control. My report has 2 datasources. Would adding a third one work? Also in the Init of the form with the reportviewer control I tried using the bindingsource.filter but it does not seem to work. All I want to do on my report is list the persons name along with all of the detail records that are related to that name. Thanks for any help you can provide.

        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