I need to find the last close date in each row from a query. Each row has five close dates. Of those five, I want to add a column in the query with the latest date.
It seems to me I will need to do a sort of some kind, and I'm guessing also that's going to make me have to write a function. But if there's a way in the Access query, I'd sure rather do that!
I'm toying with this idea, but it seems quite cumbersome and is already giving me a headache:
IIf(date1>date2,date1,IIf(date1>date3,date1,IIf(date1>date4.....))
There have to be too many possibilities to do it this way.
Ken
It seems to me I will need to do a sort of some kind, and I'm guessing also that's going to make me have to write a function. But if there's a way in the Access query, I'd sure rather do that!
I'm toying with this idea, but it seems quite cumbersome and is already giving me a headache:
IIf(date1>date2,date1,IIf(date1>date3,date1,IIf(date1>date4.....))
There have to be too many possibilities to do it this way.
Ken