Hello,
I’m developing a Crystal report using Visual Studio 2005. My datasource is tied directly to the database table.
The database table has the following columns: Group, Subgroup, and CompanyName. Sample data is as follows:
Group Subgroup CompanyName
ABC Example Example Co
ABC ABC ABC Co
ABC Another Another abc Co
XYZ XYZ XYZ Co
EXA EXA EXA Co
With the example data above, its saying that Group “ABC”, has 2 subgroups, “Example” and “Another”
In the report, I would like to display it in the following manner:
Group Company Name
ABC ABC Co
Example Example Co
Another Another abc Co
XYZ XYZ Co
EXA EXA Co
I was able to create it in this manner by creating groups (one for Group column, another for Subgroup) using the Group Expert. It is grouping it correctly. However, the company name showing for ABC is not ABC Co, but Example Co. It seems to be taking the first occurence of CompanyName from the database that has a Group ABC. In this case, it is "Example Co" (see following).
Group Company Name
ABC Example Co
Example Example Co
Another Another abc Co
XYZ XYZ Co
EXA EXA Co
How can I have the report display the correct name for Group "ABC", which is "ABC Co"?
Thank you so much for your time.
I’m developing a Crystal report using Visual Studio 2005. My datasource is tied directly to the database table.
The database table has the following columns: Group, Subgroup, and CompanyName. Sample data is as follows:
Group Subgroup CompanyName
ABC Example Example Co
ABC ABC ABC Co
ABC Another Another abc Co
XYZ XYZ XYZ Co
EXA EXA EXA Co
With the example data above, its saying that Group “ABC”, has 2 subgroups, “Example” and “Another”
In the report, I would like to display it in the following manner:
Group Company Name
ABC ABC Co
Example Example Co
Another Another abc Co
XYZ XYZ Co
EXA EXA Co
I was able to create it in this manner by creating groups (one for Group column, another for Subgroup) using the Group Expert. It is grouping it correctly. However, the company name showing for ABC is not ABC Co, but Example Co. It seems to be taking the first occurence of CompanyName from the database that has a Group ABC. In this case, it is "Example Co" (see following).
Group Company Name
ABC Example Co
Example Example Co
Another Another abc Co
XYZ XYZ Co
EXA EXA Co
How can I have the report display the correct name for Group "ABC", which is "ABC Co"?
Thank you so much for your time.