HazMatt Posted September 1, 2005 Posted September 1, 2005 (edited) I have a portal that shows all boarding reservations for a given date. Active reservations are given a pen number, and some reservations (like No Shows and Cancellations) are not given a pen number. I'd like to show ALL of the reservations, but make the active reservations show up on the top, and sort by them by pen number. In technical terms... When I simply sort by [pen_number], records with blank [pen_number] fields show up on top (obviously not what I want). So, I believe the correct method is by using the "Custom order based on value list". BUT, I do not know what to enter in my value list to sort ascending, THEN blank values... Any suggestions? A specific solution would be great, but I wouldn't mind a general "Dummies Guide to Sorting by Value Lists" response. : Edited September 1, 2005 by Guest
-Queue- Posted September 1, 2005 Posted September 1, 2005 I would add a calculation number field of IsEmpty(pen_number) and sort by this field, ascending, then by pen_number.
HazMatt Posted September 2, 2005 Author Posted September 2, 2005 Thanks -Queue-, Works like a charm! But, I'm still curious about sorting via value list... Does anybody routinely use that feature?
comment Posted September 2, 2005 Posted September 2, 2005 It's a very limited feature, bacause it looks for an exact match of data to a value. It is not an alternative alphabet. IOW, if your value list is a, c, b, the sort will produce: a c b aa ab ac As you see, where the entries are not an exact match to a value, the sort defaults to normal. This feature is handy if you have a field that is set by a value list and you want sorting to follow some logic that is not alphabetical, e.g. month names.
Recommended Posts
This topic is 7023 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now