The only problem with dgilz's solution is that you will have two records for each transaction. you will need to group on the transaction id number and supress the details section.
You could create two sub-reports and link on a formula field. Use the If..then..else logic to create two formula field like this:
//link1
If {table.field} =1 then {table.keyfield}
//link2
If {table.field} =2 then {table.keyfield}
In the sub reports (there are two of them) you simply return the price field using a shared variable.
Alternative three would be to create a crystal dictionary.
In the dictionary you can link on a formula field. create the two formulas and then link to the two price tables. Only one will be successful for each master record. Howard Hammerman,
Crystal Reports training, consulting, books, training material, software, and support. Scheduled training in 8 cities.
howard@hammerman.com
the condition is:
if table1.types="table2" then {table2.price} else
if table1.types="table3" then {table3.price} else
if table1.types="table4" then {table4.price}
I use dgillz 's method but get result like Howard said;
i can't build the report as Howard said, Can you guys tell me more details to build it .
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.