Data Report Grouping/Group header - How to?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bluepiper
    New Member
    • Sep 2007
    • 13

    Data Report Grouping/Group header - How to?

    I'm new with VB 6 Data report.
    I want to use it to create simple reports that can group by specified field.

    Ex. Fields:

    Doctor_Name
    Address
    Sched
    Laboratory
    Count(Laborator y) as LabCount

    I want to place Doctor_Name,Add ress, Sched on the group header,
    but i dont know how. Then Laboratory and LabCount in Detail section.
    Can somebody show me the step by step procedure on how to create it
    or sample codes?

    Thanks.
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Right click on the Detail bar and select
    Group Header/Footer

    Comment

    • bluepiper
      New Member
      • Sep 2007
      • 13

      #3
      Thanks Hariharanmca for the reply. I've tried it but Im getting this error "Report section do not match the data source". How can I solve this. Thank You.

      Comment

      • bluepiper
        New Member
        • Sep 2007
        • 13

        #4
        I've already created a Label and Textbox on the group header section and Set its DataMember and DataField on the properties window. Still Error occurs: "Report section do not match the data source".

        And I use this code to call the report on click event:
        Code:
        dataenvironment1.connection1.open
        Call dataenvironment1.Command1 (cboDocName.text) '<---its a parameter
        datareport1.show
        Please help me. Thanks.

        Comment

        Working...