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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GroupSort Problem 1

Status
Not open for further replies.

jcl5

IS-IT--Management
Dec 6, 2002
89
GB
Please help - I think I'm going mad!

I have a report which is grouped (GH3) by COMPANYID (unique key) but I want to display the records by COMPANYNAME.

It should be so simple but I can't seem to get it to work.


What is the (simple) answer?

Thanks

jcl


 
Right click on GH3>Change Group. In the Group Options section, check 'Customize Group Name Field', use 'Choose from existing field', and select your Company Name field.

In GH3, if you've got Group #3 Name in there, it should now print the Company Name that corresponds to the ID instead of just the ID.

Or, you could just get rid of the Group #3 Name field, and replace it with Company Name.

-dave
 
Thanks for the quick response Dave!

I already have the group name customised to company name but it isn't sorting them alphabetically.

I need to keep the companyid as the group header because there are duplicate company names (different branches) in the database.

Thanks

jcl
 
Sorry, even though the thread says 'Group Sort', I missed it...

How about this... create a formula to use for Group 3:
Code:
//@Group3
{Table.CompanyName} + totext({Table.CompanyID},0,"")
Then instead of grouping on {Table.CompanyID}, group on @Group3, then show your CompanyID field in the header.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top