Hi Guys,
I am having trouble trying to get the syntax correct for the formula below:-
{@Date} IN [CDate(Year({?DateFrom}) - If(Month({?DateFrom}) < 4 Then 1 else 0), 04, 01) TO {?DateTo}]
The {@Date} is a formula to convert a SQL date/time field to a Date format only.
The {?DateFrom} and {?DateTo} are my date input prompts.
I am trying to extract a data set for the financial year upto the {?DateTo} prompt.
However I keep getting a message "Error in Formula". It says the ) is missing and then highlights the word Then, in the formula.
Any help would be appreciated, as been trying to figure this out for hours.
Regards
OAP