Skip to Content
author's profile photo Former Member
Former Member

Problem in creating a report from different tables

Hi Guys,

I was preparing a crystal report for my Rate Analysis Project. I used a data set for storing the result set. I got 5 tables (Project,Work Item,Work Item Equipment Cost,Work Item Labor Cost and Work Item Material Cost) and these tables are filled with a criteria that's based on a project number.

Basically a project has a certain work items and each work item has its own labor,equipment and material involved.Having this i tried to fill each data table with its respective sql statement.And then add the data tables to the data set and at the end load the data set to the report.

But i got the results printed on every single page which i don't know.I designed the report by putting some fields on the page header and the others on the detais section.But i wanted the result to be displayed like the second picture.The first one is the result i got.

p.png (59.1 kB)
Untitled.png (27.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 08, 2014 at 11:06 AM

    Hi Nebil,

    1) Go to the Group Expert > Add the Work Item No. field to the Group List

    2) Also add the field that contains records like Material, Labour, Equipment etc to the Group List below Work Item No.

    3) Add all the other fields to the Details Section

    4) Get rid of whatever database fields were used in the Page Header.

    5) Format the report as required.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2014 at 11:32 AM

    The thing that is giving me a different result is that crystal reports by default creates sql query that doesn't match the one i wrote on vb.Is there a way to tackle this problem.Crystal report is using JOIN but i'm using data tables and then loading them into a dataset.

    Is there a way to overcome this problem? Plus is it necessary to link the tables that have common fields?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Abhilash Kumar

      To clearly set the image to you,i have a project and this project has work items and each work item has a labor,material and equipment of it's own.

      So they are related by project and work item.That's why i created 2 groups.

      But what i really wanted was after finishing displaying the all labor records under that group,it would move to all material records,and so on.

      Shall i try sub group or another mechanism?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.