I would like the IIF() statement to display Today's date if [StartDate]=[EndDate]. If not, I would like to display the phrase [StartDate] to [EndDate].
However, it's not working and it reverts to the second code every time.
Code:
=IIf([Forms]![DateRange]![StartDate]=[Forms]![DateRange]![EndDate],"=Date()","="Forms![DateRange]![StartDate]" & "-" & "Forms![DateRange]![EndDate]"")
.
Code:
=IIf([Forms]![DateRange]![StartDate]=[Forms]![DateRange]![EndDate],"=Date()","Forms![DateRange]![StartDate] - Forms![DateRange]![EndDate] ")