I am new to crystal reports and am writing a formula for crystal so I can get a check for when certain trainings are due and every training has a different due date. For example if someone was hired 9/1/2022, they would have 15 days for report training, 30 days for the exposure training, etc.
And if the training is null, we want to print the due date of the training. So using the example report training would be due 9/16/2022.
My statement is something like this:
IF ISNULL({command.step1) AND ISNULL({@15 day check) THEN {command.15DayDue}
IF ISNULL({command.step1) AND ISNULL({@30 day check) THEN {command.30DayDue}
ELSE ToText({command.step1},'MM/dd/yyyy')
I keep running into an error message saying that the last line isn't part of the formula. I'm struggling a bit because I am not sure how to get all the conditions in the same formula field.