sorting
Hi I have a report which gives the user the ablility to choose the sort order. So i have created a paremeter with ANIMa,Group and Cage values. And wrote a formula
if ucase({?Sortfield}) = 'ANIMAL' then
{@Animal_Sort}
else if ucase({?Sortfield}) = 'Group' then
{@group_no}
else if ucase({?Sortfield}) = 'CAGE'
then totext({RPT_INLIFE_OBSERVATION.CAGE_NUMBER},0,'')
and created a group with this formula and it works fine till this level.
if the user selects Animal,
the report should be first grouped by ************,then by group # and finally Animal.
if the user selects Group,
the report should be first grouped by group #,then by ************ and finally Animal.
So i have created another formula and have a sub group an this formula and this also works fine.
My prob here is our co., wants to see Males first and then Females.I can't change the order in the group as if i do not, when the report is grouped on Group # , it will show as 4,3,2,1 as against 1,2,3,4'
Can anyone pl., throw light on this.
Thanks,
Kavitha.
|