Order by without blanks

bodylojohn

Registered User.
Local time
Today, 14:25
Joined
Dec 28, 2005
Messages
205
Hello,

I have the following row:

Name
-------

Zack
Peter

Quintin

John
Brad

As you see it is possible to have a blank space

When I do order by name it looks like this:

Name
----
(blank)
(blank)
(blank)
(blank)
Brad
John
Peter
Quintin
Zack

How can I get this:

Name
----
Brad
John
Peter
Quintin
Zack
(blank)
(blank)
(blank)
(blank)

Thanks for your help
 
your query sorts alphabetically, so blanks come at the top

you could have another column something like

iif(nz(targetname,"")="","~",targetname)

- thiis will put the blanks to the bottom (i think ascii for ~ is higher than ordinary letters) - use this column as sort order for your query.
 

Users who are viewing this thread

Back
Top Bottom