Pass form combobox to Report header (Visual Studio)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gareth Jones
    New Member
    • Feb 2011
    • 72

    Pass form combobox to Report header (Visual Studio)

    Hi all,

    I am trying to pass the contents of a form combobox into a Report header in Visual Studio.

    I can do this no problem in Access but since moving onto VS I cant do the same.

    I have a report, with a parameter in the header.

    I then have a form with a bunch of comboboxes, and a report viewer. The comboboxes are used to filter the report which works fine.

    What I want is when the user clicks a combobox value, it will display in the report.

    E.g. The user clicks the month January in a combobox, it will then display January in the header and so on.

    Thanks
    Gareth
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    What version of Visual Studio is this?

    If you're referring to Visual Basic version 4, 5 or 6 (which is what this forum is about) then I'd have to guess that a "report viewer" must be something like the Crystal Reports product. Is that right?

    If you're referring to the later, .net-based versions of Visual Basic (or other languages supported in Visual Studio) then you might need to ask this question in one of the other areas (see the dropdown selections up top).

    Comment

    Working...