Re: query records by numbers column with blank records showing last
- From: John Spencer <spencer4@xxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 19:35:07 -0500
Order by [TheField] is Null Desc, [TheField]
If you are doing this in the query grid, add a calculated column. In front of
the column Number column if you are using the grid.
FIeld: [TheTable].[TheField] is Null
Sort By: descending
Show : Unchecked
An alternative, if your numbers column has a known maximum is to sort by NZ([TheNumberField],10000000000)
That assumes that 10000000000 is larger than any number you have in the number
field (and it will fail to sort property for you if you ever do get the larger number.
JMT203 wrote:
>
> I want to query the numbers column to show my records in numeric order. By
> default it shows the records without a number assigned, first. I want those
> records to be displayed at the end.
.
- Prev by Date: Re: Field Formats
- Next by Date: Re: AfterUpdate Code Help
- Previous by thread: Re: query records by numbers column with blank records showing last
- Index(es):
Relevant Pages
|