How to sort the result of PIVOT?

myuser

Registered User.
Local time
Today, 12:25
Joined
Jan 10, 2014
Messages
10
Hello everybody,

I had made a report based on a query last year as bellow, but I don't remember how did I sort the results by "Totally"?

TRANSFORM Count(ID)
SELECT specialist,Count(ID) AS Totally
FROM projects
GROUP BY specialist
PIVOT main_firm;


The results are sorted by Totally:

Specialist totaly A B
-------------------------
Sara 10 6 4
David 7 2 5
Paul 3 2 1

When I run the Query, the results are not sorted, but in the report I see them sorted.

I'd like to create another report similar this one, but I do not know how could I do.


Anybody knows?


Best Regards
 
Open the report in design view, right click, then choose option "Sorting and Grouping".
attachment.php
 

Attachments

  • SortReport.jpg
    SortReport.jpg
    20.3 KB · Views: 266
Thank you so much JHB.
However I dont think I had sorted result via this menu, maybe there is another way too, But really thanks for your help.

Have a nice day
 
If you want to sort in a report then this is the way, because even if you do a sorting in the query, the report doesn't take notice on it. Did you even try to activate it?
Here is a more detail about grouping and sorting in a report:
http://www.functionx.com/access/Lesson25.htm
 

Users who are viewing this thread

Back
Top Bottom