Results 1 to 2 of 2

Thread: Datareports Group in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    1

    Datareports Group in VB

    Hello

    I'm having problems with VB DataReport.
    I set a recordset that contains several fields including the "red squared" in the picture below:



    When I'm trying to show this datareport I receive an error:"Report sections do not match data source".
    I double-checked the fields and names, and the only thing that causes it is the Group Header. When I remove it everything works fine.
    The problem is: I need to calculate and show rows from the record set grouped by one field.
    I need to show all the rows in that specific group and calculate sum for 2 fields for each group.

    Where did I go wrong?

    Thank you.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Datareports Group in VB

    In order to use Groups you must create a Hierarchical recordset.

    http://www.vbforums.com/showthread.php?t=366613

Posting Permissions

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



Click Here to Expand Forum to Full Width