I am trying to sort a grouped report by results in a control.
My first grouping is for Divison, then employee. I need the employees within each Division to sort descending by results. The control that holds the results contains the following logic in the value exp.
Sum([PolCount]) Where([REF_PRODLINE.PRODLINENAME] = A AND [EfftEndDate] >= CDate(StartDate) AND [EfftEndDate] <= CDate(EndDate))
I have overridden the ObtainSelectStatement and entered -- Orderby (Region Column #), (Employee Column #). When I drop the Employee field I get duplicates (because employees may exist in mulitple locations in the database (transfers, promotions etc.)
Any suggestions?????
Thanks!
Chris
My first grouping is for Divison, then employee. I need the employees within each Division to sort descending by results. The control that holds the results contains the following logic in the value exp.
Sum([PolCount]) Where([REF_PRODLINE.PRODLINENAME] = A AND [EfftEndDate] >= CDate(StartDate) AND [EfftEndDate] <= CDate(EndDate))
I have overridden the ObtainSelectStatement and entered -- Orderby (Region Column #), (Employee Column #). When I drop the Employee field I get duplicates (because employees may exist in mulitple locations in the database (transfers, promotions etc.)
Any suggestions?????
Thanks!
Chris