Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excluding an item from a sort

Status
Not open for further replies.

LanceA

Technical User
Jul 22, 2002
2
US
I am running a sort query, and would like to exclude one of the items from my list. Is there any way to do this in the criteria field?

Lance
 
Of course. Specify that the column does not have a value that is specific to the item you wish to exclude.
Code:
<> &quot;ducks&quot;
This will eliminate all ducks.

However, this may not be exactly what you mean. It might be that you want ducks in the list, just not sorted. This is the same as saying that you want to sort on two columns. So you need a column that identifies the ducks and has a value that will place the ducks first (or last). Everything that is not a duck will have a value that places them last (or first). Then sort on the ducky column and the other column that gives the general order. All ducks will be sorted to the top (or bottom) and all non-ducks will be sorted by the other column.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top