Hello All,
I have created a form for user entry, that will measure a set of information against a business day deadline. However, there are two potential business day deadlines -3 and 5. I was able to create a formula that correctly captured the five day deadline:
[=IIf(IsNull([arrival date]),"In Progress",IIf(IsNull([completion date]),"In Progress",IIf([arrival date]=[completion date],"Deadline Obtained",IIf(DateDiff("d",[arrival date],[completion date])<=5,"Deadline Obtained",IIf(DateDiff("d",[arrival date],[completion date])>5,"Deadline Missed","false")))))]
However, I needed to add functionality to determine the number of business days required to open an account via a new field containing a formula that matches account types to the number of business days required to open the account. I am having difficulty setting up the formula to take into account whether the account is subject to a three or five business day deadline - I have the following formula written:
IIf([business days requested]=5,IIf(IsNull([date all mandatory information received]),”In Progress”,IIf(IsNull([completion date]),”In Progress”,IIf([date all mandatory information received]=[completion date],”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])<=5,”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])>5,”Deadline Missed”,IIf([business days requested]=3,IIf(IsNull([date all mandatory information received]),”In Progress”,IIf(IsNull([completion date]),”In Progress”,IIf([date all mandatory information received]=[completion date],”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])<=3,”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])>3,”Deadline Missed”, "false))))))))))))
I am continually getting an "operand without operator" error, or a syntax error with this formula. Am I unable to create a formula based on a calculated field in a form, or am I unable to link two IIF strings?
Any / all opinions are appreciated! Thank You.
I have created a form for user entry, that will measure a set of information against a business day deadline. However, there are two potential business day deadlines -3 and 5. I was able to create a formula that correctly captured the five day deadline:
[=IIf(IsNull([arrival date]),"In Progress",IIf(IsNull([completion date]),"In Progress",IIf([arrival date]=[completion date],"Deadline Obtained",IIf(DateDiff("d",[arrival date],[completion date])<=5,"Deadline Obtained",IIf(DateDiff("d",[arrival date],[completion date])>5,"Deadline Missed","false")))))]
However, I needed to add functionality to determine the number of business days required to open an account via a new field containing a formula that matches account types to the number of business days required to open the account. I am having difficulty setting up the formula to take into account whether the account is subject to a three or five business day deadline - I have the following formula written:
IIf([business days requested]=5,IIf(IsNull([date all mandatory information received]),”In Progress”,IIf(IsNull([completion date]),”In Progress”,IIf([date all mandatory information received]=[completion date],”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])<=5,”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])>5,”Deadline Missed”,IIf([business days requested]=3,IIf(IsNull([date all mandatory information received]),”In Progress”,IIf(IsNull([completion date]),”In Progress”,IIf([date all mandatory information received]=[completion date],”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])<=3,”Deadline Obtained”,IIf(DateDiff(“d”,[date all mandatory information received],[completion date])>3,”Deadline Missed”, "false))))))))))))
I am continually getting an "operand without operator" error, or a syntax error with this formula. Am I unable to create a formula based on a calculated field in a form, or am I unable to link two IIF strings?
Any / all opinions are appreciated! Thank You.
Last edited: