Order by In Report
I use order by in the query like this
ORDER BY IIF(ISNULL(SHOPDWGDETAILS.DATE_SUBMITTED),SHOPDWGD ETAILS.DATE_RETURNED,SHOPDWGDETAILS.DATE_SUBMITTED )
when query run it retreive/display the record like this
date_submitted..date_return...status
------------------------------------
.................12-12-2005.....AAN
.................27-08-2005.....AAN
23-08-2005.........................
10-12-2005.........................
...
it should be display like this.
date_submitted..date_return...status
------------------------------------
23-08-2005.........................
.................27-08-2005.....AAN
10-12-2005.........................
.................12-12-2005.....AAN
...
this is shopdrawings in and out query order by. ie
first drawing submitt and after that necessary action
drawing return to contractor. I have to see the status.
when drawing submit status nill and after return status will
AAN (APPROVED AS NOTED) ect.
how use the date submitted and date return in order by
IIF clause with ISNULL ?
I also save the requery, some other properties will change?
Mateen
|