I have a report that shows sales rate by employee, and I want to be able to sort the report by sales rate (desc).
The query I'm pulling from has multiple records per day per employee, so to get a summary in the report I group by employee, and don't display any detail.
I can't create a summary query because the users need to be able to filter the report by date (filter criteria is passed from a form, via [tt]DoCmd.OpenReport reportName, acPreview, , criteria[/tt]).
The report looks something like this:
[tt]
Employee Customers Sales Sales Rate
Bob 100 10 10.0%
Joe 99 13 13.1%
[/tt]
...and the query looks something like this:
[tt]
date job_num employee customers sales
5/1/04 1111 Bob 52 6
5/1/04 1112 Bob 12 1
5/1/04 1113 Bob 36 3
5/1/04 1113 Joe 99 13
[/tt]
Any idea how I can sorting the report by sales Rate? I've done several searches here over the last few days and I can't find anything that solves the problem.
The query I'm pulling from has multiple records per day per employee, so to get a summary in the report I group by employee, and don't display any detail.
I can't create a summary query because the users need to be able to filter the report by date (filter criteria is passed from a form, via [tt]DoCmd.OpenReport reportName, acPreview, , criteria[/tt]).
The report looks something like this:
[tt]
Employee Customers Sales Sales Rate
Bob 100 10 10.0%
Joe 99 13 13.1%
[/tt]
...and the query looks something like this:
[tt]
date job_num employee customers sales
5/1/04 1111 Bob 52 6
5/1/04 1112 Bob 12 1
5/1/04 1113 Bob 36 3
5/1/04 1113 Joe 99 13
[/tt]
Any idea how I can sorting the report by sales Rate? I've done several searches here over the last few days and I can't find anything that solves the problem.