How can I create a report that has one Header table and two Details ?
For example I might have three tables, StockCode, SalesLine and BuyLine.
Ideally I'd like to be able to create a report that lists each stock code (from StockCode table) and then after each, lists first the appropriate SalesLine entries (for that stock code) and then the BuyLine entries (for that stock code).
For instance I'd like to have something like :
StkCode1
- SalesLine1 (for StkCode1)
- SalesLine2 (for StkCode1)
- BuyLine1 (for StkCode1)
- BuyLine2 (for StkCode1)
- BuyLine3 (for StkCode1)
StkCode2
- SalesLine1 (for StkCode2)
- SalesLine2 (for StkCode2)
- SalesLine3 (for StkCode2)
- BuyLine1 (for StkCode2)
StkCode3
- SalesLine1 (for StkCode3)
- BuyLine1 (for StkCode3)
- BuyLine2 (for StkCode3)
I seem to have drawn a blank (hitting a dead end) trying to generate a report like this.
After adding the three tables StockCode, SalesLine + BuyLine I created links between StockCode - SalesLine (through StkCode field) and StockCode - BuyLine (through StkCode field). I then had three Detail bands, the first one for StockCode, the second for SalesLine, the third for BuyLine (supressing blanks for Detail bands 2 + 3).
This almost gives me what I want but if using the data as above actually gives me the following :
StkCode1
- SalesLine1 (for StkCode1)
- BuyLine1 (for StkCode1)
StkCode1
- SalesLine2 (for StkCode1)
- BuyLine2 (for StkCode1)
StkCode1
- BuyLine3 (for StkCode1)
StkCode2
- SalesLine1 (for StkCode2)
- BuyLine1 (for StkCode2)
StkCode2
- SalesLine2 (for StkCode2)
StkCode2
- SalesLine3 (for StkCode2)
StkCode3
- SalesLine1 (for StkCode3)
- BuyLine1 (for StkCode3)
StkCode3
- BuyLine2 (for StkCode3)
Can anyone suggest how I can get the layout in the way as indicated in the first instance ?
I don't know if it's not achievable or if its just a case of not being able to see the wood for the trees ?
[I am developing the Crystal Report against Paradox tables.]
Any help / pointers would be greatly appreciated.
Thanks in advance.
Steve
For example I might have three tables, StockCode, SalesLine and BuyLine.
Ideally I'd like to be able to create a report that lists each stock code (from StockCode table) and then after each, lists first the appropriate SalesLine entries (for that stock code) and then the BuyLine entries (for that stock code).
For instance I'd like to have something like :
StkCode1
- SalesLine1 (for StkCode1)
- SalesLine2 (for StkCode1)
- BuyLine1 (for StkCode1)
- BuyLine2 (for StkCode1)
- BuyLine3 (for StkCode1)
StkCode2
- SalesLine1 (for StkCode2)
- SalesLine2 (for StkCode2)
- SalesLine3 (for StkCode2)
- BuyLine1 (for StkCode2)
StkCode3
- SalesLine1 (for StkCode3)
- BuyLine1 (for StkCode3)
- BuyLine2 (for StkCode3)
I seem to have drawn a blank (hitting a dead end) trying to generate a report like this.
After adding the three tables StockCode, SalesLine + BuyLine I created links between StockCode - SalesLine (through StkCode field) and StockCode - BuyLine (through StkCode field). I then had three Detail bands, the first one for StockCode, the second for SalesLine, the third for BuyLine (supressing blanks for Detail bands 2 + 3).
This almost gives me what I want but if using the data as above actually gives me the following :
StkCode1
- SalesLine1 (for StkCode1)
- BuyLine1 (for StkCode1)
StkCode1
- SalesLine2 (for StkCode1)
- BuyLine2 (for StkCode1)
StkCode1
- BuyLine3 (for StkCode1)
StkCode2
- SalesLine1 (for StkCode2)
- BuyLine1 (for StkCode2)
StkCode2
- SalesLine2 (for StkCode2)
StkCode2
- SalesLine3 (for StkCode2)
StkCode3
- SalesLine1 (for StkCode3)
- BuyLine1 (for StkCode3)
StkCode3
- BuyLine2 (for StkCode3)
Can anyone suggest how I can get the layout in the way as indicated in the first instance ?
I don't know if it's not achievable or if its just a case of not being able to see the wood for the trees ?
[I am developing the Crystal Report against Paradox tables.]
Any help / pointers would be greatly appreciated.
Thanks in advance.
Steve