Good day.
I have a table with four date fields, of which at least one field will have a date.
I'm trying to write an IF Then statement on a query that will find the earliest date in all four fields.
I started off with ...
MinDate: IIf([Date1]<=[Date2],[Date1],(IIf([Date2]<=[Date3],[Date2],(IIf([Date3]<=[Date4],[Date3],[Date4])))))
...but that obviously didn't work
I've attached a sample db with the expected results.
Any help would be appreciated.
TIA
I have a table with four date fields, of which at least one field will have a date.
I'm trying to write an IF Then statement on a query that will find the earliest date in all four fields.
I started off with ...
MinDate: IIf([Date1]<=[Date2],[Date1],(IIf([Date2]<=[Date3],[Date2],(IIf([Date3]<=[Date4],[Date3],[Date4])))))
...but that obviously didn't work
I've attached a sample db with the expected results.
Any help would be appreciated.
TIA