I want to create a type of Summary report for an account. The report should have a chart of account data from one data source AND a grid of different account data from another data source.
I want to use all of the data from table one where account_ID = X AND I want to use all of the data from table two where account_ID = x.
Crystal Reports will let me add two different datasources, but It wants to link them to create a sub report in a Master / Details kind of way. I need to report on ALL of the data in table one, and all of the data in table two.
I'm a bit confused on how to do that.
Note: When I'm doing this for one report only, I just create a datatable from a view filtered by the account_ID and then set that as the datasource for the report. That way the heavy lifting is done before Crystal Reports gets the data. Again, not sure how to do that for two different datasources.
Does your current call rely on a Sql Select Command
if so sounds like you need to alter and or create a view that's based on aJOIN
statement unless I am misunderstanding what it is you are requesting – MethodManUNION
, however OP's "a grid of different account data from another data source" suggests that the two datasets don't look the same. I'm thinking that the correct solution is two reports. So... @pStan -- do the two datasources contain the same fields? – Bob Kaufman