I have a query that has three columns, Date1, Date2, and Date3. What I want to do is use an IF statement to create a new column based on the greater value of two of those dates out of the three. In my query design would I use a "display text", IIF, etc. Please share your knowledge.
Here is the logic....
IF(Date2="",IF(Date1="",Date3,Date1),Date2)
So the output of the statement would create a new column. Column 1 - Date1, Column 2 - Date2, Column 3 - Date3, Column 4 - output of statement!
Thanks for looking.
Here is the logic....
IF(Date2="",IF(Date1="",Date3,Date1),Date2)
So the output of the statement would create a new column. Column 1 - Date1, Column 2 - Date2, Column 3 - Date3, Column 4 - output of statement!
Thanks for looking.