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

How to sort Records by two Fields???

Status
Not open for further replies.

vlad2

Programmer
Jan 9, 2002
56
0
0
US

I have two kind of customers: 1.Busuness and 2.Personal
in the report Customer List i need to sort all customers by The LastName and BusName.In the report on 'Change Group' I selected Customer.NameLast in ascending.

BUT report dispalay buss customer name(Bob's......) and then
Personal customers, sorting in ascending order.

How i can Sort by Both names???

thanks in advance.
 
I'm not sure what you are asking for but I will try to answer it.

You can create a grouping formula to do this task.

I am going to assume that you are already grouping by customer type (ie. Business or Personal)

the grouping formula can look something like

@groupingbyname

{table.LastName} + "," + {table.firstName} ;

now just create a group selecting this formula

Hope this helps
Jim
 
Sounds like you need to create a formula such as:

IF {Customer_Type} = "Business"
THEN {Business_Name}
ELSE {Last_Name}

Then group or sort on that formula.

Cheers,
- Ido
ixm7@psu.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top