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

Second sort on the field

Status
Not open for further replies.

hpai

Programmer
Nov 7, 2001
4
US
Hi,
I use a parameter field to change my sorting like following:

If {?Sort By} = "Last Name" Then {Employee.LName}
Else {Region.ID}

Except Employee.LName, I also want a second sort for Employee.FName. How do I add Employee.FName into this formula?
 
I assume you are putting this into the sort expert...or alternatively you could create a group on this formula

If {?Sort By} = "Last Name" Then
{Employee.LName} + "/" + {Employee.LName}
Else
{Region.ID};

if you base your sorting on this formula as a group...you will see the lastname/firstname in the tree of the report
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top