I have 6 columns, all with dates within them, i.e.
Proposed Start Date 1
Proposed Start Date 2
Proposed Start Date 3
Proposed Finish Date 1
Proposed Finish Date 2
Proposed Finish Date 3
What I need to do is narrow this down into two fields:
Start Date
Finish Date
So I need to find the newest value from the columns. i.e.
If PS1 filled PS2 and PS3 empty, then Start Date = PS1
If PS3 empty and PS2 filled, then Start Date = PS2
If PS3 filled then PS3
and similarly for Proposed Finish Dates.
Anyone knew how I can do this.
(Maybe the following will help for the programmers out there:
If PS3 <> null
Then StartDate = PS3
Else if PS2 <> null
Then StartDate = PS2
Else
StartDate = PS1
End IF
Jagdip
Proposed Start Date 1
Proposed Start Date 2
Proposed Start Date 3
Proposed Finish Date 1
Proposed Finish Date 2
Proposed Finish Date 3
What I need to do is narrow this down into two fields:
Start Date
Finish Date
So I need to find the newest value from the columns. i.e.
If PS1 filled PS2 and PS3 empty, then Start Date = PS1
If PS3 empty and PS2 filled, then Start Date = PS2
If PS3 filled then PS3
and similarly for Proposed Finish Dates.
Anyone knew how I can do this.
(Maybe the following will help for the programmers out there:
If PS3 <> null
Then StartDate = PS3
Else if PS2 <> null
Then StartDate = PS2
Else
StartDate = PS1
End IF
Jagdip
Comment