I am using the below query to order by date so if there is no date they are grouped together
SQL="SELECT *, orderbyWhat = CASE dueDate WHEN Null THEN 3 WHEN '' THEN 2 ELSE 1 END FROM todoList WHERE staffID="&session("staffID"
&" AND (DateAdd(hh,12,completeDate) >= getDate() OR completeDate is null) ORDER by orderbyWhat"
bu what I get is
30 Sep 03
(Null)
07 Oct 03
Whereas what I would like is:
30 Sep 03
07 Oct 03
(Null)
what am I doing wrong??
Cheers
Tim
SQL="SELECT *, orderbyWhat = CASE dueDate WHEN Null THEN 3 WHEN '' THEN 2 ELSE 1 END FROM todoList WHERE staffID="&session("staffID"
bu what I get is
30 Sep 03
(Null)
07 Oct 03
Whereas what I would like is:
30 Sep 03
07 Oct 03
(Null)
what am I doing wrong??
Cheers
Tim