Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Report from Multiple Tables Post Reply Post New Topic
Author Message
evant8950
Newbie
Newbie


Joined: 23 Jul 2009
Location: United States
Online Status: Offline
Posts: 1
Quote evant8950 Replybullet Topic: Report from Multiple Tables
    Posted: 23 Jul 2009 at 9:30am
I am new to crystal reports. I am trying to create a crystal report from my database that is structured similar to this:

Company
JobNumber
Platform
Level
Area
Item
Component

I need to create a report from this hierarchy. Each table is linked by a foreign key. I need to be able to select the database based on the ID i pass to the report. What is the best way to create a report like this? Do I use a sub-report? Or is there a better way?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 24 Jul 2009 at 6:48am

are these the tables in the database or the databases?

If you want to use multiple databases, not tables, the only solution that comes to mind is a stored procedure, which will need to be in the database that the connection is pointing to.  In the stored proc, you can have the code select from the correct database.  Crystal can only 'see' 1 database at a time.
 
Also, unless this is being called from an app, you don't pass things to the report, the report selects based on inputs made to the report. If you are going to pass anything to the database (you are using an app) why not have the app collect the data and pass that to the report?
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.032 seconds.