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

Sorting on different field than group by

Status
Not open for further replies.

nsanto17

IS-IT--Management
Mar 14, 2005
616
US
I have a report Grouped by ID number but i want it sorted by Name.

Is there an easy way to do this?

Header 1 is Grouped by Account_Exec
Header 2 is Grouped by Broker_ID
All Detail has been suppressed.

Header 2 is then sorted by ID when i would like it sorted by Broker_Name and not Broker_ID

Thanks in advance.
 
Hi,
Can't you just change the field used for Group 2 ( or am I missing something?)




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
No... I'll explain.

When we enter the brokers in we have to use the name on each states license. Some brokers use different names for each state.

My table looks like this
110NY - ABC Broker
110FL - ABO Broker, LLC.

I can use the Left Function to get the code to read 110 and use that formula to group. However if use the name field then 2 brokers will apear instead of 1.

I want to group on my formula that using the left function (which returns 110) but i want to sort by name.

Do you need me to cleaify further?

 
Hi,
Which name would appear in Group 110, the NY or FLA broker's name?

You can use the MID function to isolate the Name part ( using InStr to find the - character ), create a formula using that part and and sort, within the Group, on that formula.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Place the name field in the details section and insert a summary on it (max or min) at the ID level, and then go to report->group sort and select the summary to sort the group by.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top