Sorting in an access report? help

davin2929

Board Regular
Joined
Oct 13, 2002
Messages
129
I have a control in a report that contains a percentage and I want to sort the records by that control in descending order. When i do this it starts the sort at 0.0% and declines through all the negatives first rather than starting at 100%. does anyone have any suggestions. i'm stumped. thanks.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
That's an odd one, I would think that it would start from 100.0% and then go down from there. Either way, here's an all-purpose thing that I do when I want to have a large group of records sorted before another group. In the query that this report is based off of, add a field and call it something like 'Sort_Field'. Define it as:
Code:
Sort_Field:  Iif([Your_Calculation]<=0,1,0)

Now, when defining your Sort Order, first Sort on this field, and then Sort on the Calculation field. This will first sort every number greater than 0 above every number less than or equal to 0. Within that sort, you can sort Descending by your Calculation.
 
Upvote 0

Forum statistics

Threads
1,221,581
Messages
6,160,630
Members
451,661
Latest member
hamdan17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top