iif((([START DATE]<(cdate(format(year() & [WinterStartMonth] & [WinterStartDay],"####/##/##")))) AND ([START DATE]>(cdate(format(year() & [SummerStartMonth] & [SummerStartDay], "####/##/##"))))), (DateAdd("d", [WinterInspectionDropDead], [START DATE])), (DateAdd("d", [SummerInspectionDropDead], [START DATE]))) AS dropDead
Can anybody spot the issue? I think I’ve gone OTT with the brackets but I can’t seem to shake the error.
You can usually use VBA to easily spot the errors, so:
Just remove the line break characters for SQL:
Or probably better: