Bob Barrows [MVP] wrote:[color=blue]
>
feel_free_to_spam_me@yahoo.com wrote:[color=green]
>> Hi. I'm a sorta novice ASP programmer, so I sure could use some help
>> from of you more experienced gurus....
>>
>> I've written an ASP page that pulls all records from a table.[/color]
>
> Never, never, never (have I made it clear that this should never be
> done? <grin>) ask a database-related question without telling us what
> type and version of database you are using. It is almost always
> relevant, and definitely IS relevant for this question
>[/color]
Oops, I meant to provide an answer. My bad. For Access you would do this:
"select ... order by iif([Class] > '',0,1), Class"
For SQL Server, you would use CASE instead of the VBA Iif function:
"select ... order by CASE WHEN Class>'' THEN 0 ELSE 1 END,Class"
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.