Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group based on a column name given in Table.column

Status
Not open for further replies.

sajisher

Programmer
Dec 3, 2003
45
US
Hi,

At run time, need pick up the text from Table1.column1. If it is 'Currency' then it should be grouped by Currency, if it is 'Country' then it should be grouped by Country.

Is this possible in Crystal report 9 pls. I googled for sometime but could get an answer for this scenario.

thanks
 
Hi,
If there are more possibilities in that field then use a formula like:

If Table1.column1 = "Currency"
then
"Currency"
else if Table1.column1 = "Country"
then
"Country"

and Group on that formula, not the Table1.column1

What should happen if it is neither?





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I think you should show some sample data that includes your other fields that relate to this field.

-LB

 
Thanks Turkbear, I will try sample report on this logic.

Thanks lbass, still need to get the actual report to be modified, then I will have more data/details to provide.

Always appreciate the support from this forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top