G
Guest
I have a query that returns 2 date colums, target date and actual date.
Either or both may be null. I need a query to load a list box and it must be
sorted in ascending date order with the blank dates last. For sorting the
dates the actual date if present overrides the target date. To sort I figure
I can sort by CDATE(NZ(MyDate,"12/31/2999") to make the blank dates last. But
how do I get the latest of the target and actual dates? Can I say
IIF(ActualDate > TargetDate,ActualDate,TargetDate), will this work with dates
and nulls?
Either or both may be null. I need a query to load a list box and it must be
sorted in ascending date order with the blank dates last. For sorting the
dates the actual date if present overrides the target date. To sort I figure
I can sort by CDATE(NZ(MyDate,"12/31/2999") to make the blank dates last. But
how do I get the latest of the target and actual dates? Can I say
IIF(ActualDate > TargetDate,ActualDate,TargetDate), will this work with dates
and nulls?