I have to sort a report based on a parameter. Unfortunately the sort options are of different data types. One is string and one is money.
I have created a Formula Field and identified it as the Sort Field.
IF {?SortBy} = "ITEM" THEN {tbHISTORY.ITEM_NO}
ELSE CStr(
{@Excess},2)
?SortBy is the parameter field coming in from vb.
It works fine except that it is sorting by the absolute value of @Excess thereby mixing positive and negative numbers together.
1000.00
-1050.00
1100.00
Anyone have a way around this? Converting the Item_No is not an option as it is alphanumeric.
Thanks in advance.
Larry