fuzzyocelot
Programmer
Hi, everyone!
I’ve searched through the forum and haven’t found anything similar to my problem. If I missed a posting, I apologize and ask that someone direct me to it.
Otherwise, my problem is as follows:
(Note: using Crystal 9 and database is Oracle 9i)
How the “Country” table is structured:
[tt]
Country Country
[/tt][tt]Code Name ID Desc[/tt][tt]
AO Angola 1 Kwanza
AO Angola 1 New Kwanza
AO Angola 3 Banda
AO Angola 3 Portuguese
[/tt]
The “ID” field translates to:
1 = Currency
3 = Language
Here’s how it needs to be displayed on the report:
[tt]
Country Country [/tt]
[tt]Code Name Currency Language[/tt][tt]
AO Angola Kwanza Banda
New Kwanza Portuguese
[/tt]
What I’ve done so far is to put the Country Code and Name fields in a group header. Then I created 2 formulas and put them in the details section:
But now the report looks like this:
[tt]Country Country[/tt]
[tt]Code Name Currency Language[/tt][tt]
AO Angola Kwanza
New Kwanza
Banda
Portuguese
[/tt]
How do I get the Currency and Language fields to display in separate columns right next to each other?
I appreciate any advice you may have.
Thanks,
Rebecca
I’ve searched through the forum and haven’t found anything similar to my problem. If I missed a posting, I apologize and ask that someone direct me to it.
Otherwise, my problem is as follows:
(Note: using Crystal 9 and database is Oracle 9i)
How the “Country” table is structured:
[tt]
Country Country
[/tt][tt]Code Name ID Desc[/tt][tt]
AO Angola 1 Kwanza
AO Angola 1 New Kwanza
AO Angola 3 Banda
AO Angola 3 Portuguese
[/tt]
The “ID” field translates to:
1 = Currency
3 = Language
Here’s how it needs to be displayed on the report:
[tt]
Country Country [/tt]
[tt]Code Name Currency Language[/tt][tt]
AO Angola Kwanza Banda
New Kwanza Portuguese
[/tt]
What I’ve done so far is to put the Country Code and Name fields in a group header. Then I created 2 formulas and put them in the details section:
Code:
@DisplayCurrency:
if {ID} = 1 then {Desc};
@DisplayLanguage:
if {ID} = 3 then {Desc};
But now the report looks like this:
[tt]Country Country[/tt]
[tt]Code Name Currency Language[/tt][tt]
AO Angola Kwanza
New Kwanza
Banda
Portuguese
[/tt]
How do I get the Currency and Language fields to display in separate columns right next to each other?
I appreciate any advice you may have.
Thanks,
Rebecca