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

Crystal Reports Sorting

Status
Not open for further replies.

jrc1

IS-IT--Management
Apr 17, 2001
24
0
0
US
I have a colum with values like "SAL","BRH", "TGL", "BRC", "AGL", etc....(many more)

I want to sort in a specific order so I created a formula field shown below where it gives a column a new value (a,b,c) that I will use to sort on. The problem is the "IN" clause is not working. It returns the following error: The ) is missing.

Any thoughts on a better way to do this or correct the formula below??????

If {prpost.postcode} = "SAL" Then "a"
ELSE
If {prpost.postcode} IN ("BRH", "TGL", "BRC", "AGL") Then "b"
ELSE "C"
 
Change the parenthesis to brackets

If {prpost.postcode} = "SAL" Then "a"
ELSE
If {prpost.postcode} IN ["BRH", "TGL", "BRC", "AGL"] Then "b"
ELSE "C"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top