Results 1 to 7 of 7

Thread: [RESOLVED] nesting information sources

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Resolved [RESOLVED] nesting information sources

    Hi

    I'm having problems creating a complex report.

    My report shows details of Research Grants within an organisation. Each Research Grant has zero or many Applicants. Each Applicant can belong to zero or many Units. I want to be able to display the information as follows:

    Research Grant details
    Applicant1, Unit1, Unit2, Unit3
    Applicant2, Unit1
    Applicant3, Unit1, Unit2, Unit3

    I am using three different views to bring back the information, one for the Research Grant, one for its Applicants and one for the Units an Applicant belongs to.

    I display the Research Grant details in the main report and the Applicant details for each Grant in a subreport. I am having trouble displaying the Unit information for each Applicant as Crystal does not allow me to put a subreport within a subreport. I have tried various formulas but these produce incorrect results.

    Please can anyone suggest anything?
    Thanks!

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

    Re: nesting information sources

    I am using three different views to bring back the information,
    Is there a reason you are using 3 views. It seems your query would be a simple 3 table join, which would get you the data needed in the format you need.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Re: nesting information sources

    It was the only way I could think of doing it! I'll try putting together one view for all of it and see how it goes. Thanks.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Re: nesting information sources

    Quote Originally Posted by brucevde
    Is there a reason you are using 3 views. It seems your query would be a simple 3 table join, which would get you the data needed in the format you need.
    I've looked at changing to just one view but I don't think this will be possible because each of my views already join several tables within them. I think if I tried to join all of them together it would produce incorrect results.

  5. #5
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: nesting information sources

    Quote Originally Posted by obscuregirl
    I've looked at changing to just one view but I don't think this will be possible because each of my views already join several tables within them. I think if I tried to join all of them together it would produce incorrect results.
    Why not create a temporary table or use a Union?
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Re: nesting information sources

    Quote Originally Posted by Mark Gambo
    Why not create a temporary table or use a Union?
    I didn't really want to use temporary tables because of the extra overheads. I've managed to condense the three views down to two and have managed to sort it out by putting most of the info in the main report and the rest in a subreport.

    Thanks for your help!

  7. #7
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Arrow Re: nesting information sources

    Quote Originally Posted by Mark Gambo
    Why not create a temporary table or use a Union?
    I never suggest any one to create temporary table for making the report, use the linking and be the linking expert in the CR.
    Temporary table is not the batter solution for making the report because here there is need to fill the table every time when you are calling the report and need to delete the data again.
    So try to avoid the temporary table if possible.

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