CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 1999
    Location
    MD, USA
    Posts
    34

    Creating Groups in Data Report

    I am trying to design a Data Report in VB6 and need to create sub groups. But i dont seem to be doing it right. I get an error messege whenever I manually insert a group.

    Also, Is crystal report easy to use? I have never used it before and would welcome any suggestions on how to create one.


  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Creating Groups in Data Report

    From my experience with Data Reports, it seems that it is not a good utility. Crystal Reports are more powerful but not so easy to use.
    Anyway, about the grouping you want, I tried also to do it manually and I get an error: "Report sections do not match with current data source".
    Well, if you have only 1 table, then right click on the command, go to the grouping tab and select the field(s) that you want to be the grouping fields. Now, right click on the report and select: retrieve structure. It will clear the report, and you have to design it again!
    If you have 2 tables, make one parent and the other child. Such way you achieve grouping easily.
    Let's say my question now: What if you have only 1 table and want grouping and sub-grouping inside this????

    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

  3. #3
    Guest

    Re: Creating Groups in Data Report

    yes, Crystal reports are easier to use and manage. Try ur best and enjoy.


  4. #4
    Join Date
    Dec 1999
    Location
    MD, USA
    Posts
    34

    Re: Creating Groups in Data Report

    The data for my report is from a SQL which is linking 4 tables and I need to have 4 levels of grouping. Is this possible ?


  5. #5
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Creating Groups in Data Report

    You use 4 tables, ok. Do they have any relation among each other? If yes, create the same relation hierrarchy to your data environment by adding child commands to parent ones. If you do it, retrieve structure to your data report and you will get grouping headers/footers. If you nees more, it will be done by the way I have already told you (using grouping tab).
    But: what happens if you have 1 table only and want 2 groupings? This is my situation and still I have not an answer... :-(

    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

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

Featured