Hello,
Using CR11, SQL database. Using the below formula to return a date.
WhileReadingRecords;
DateVar Array Holidays;
DateVar Target:=date({payment.updt_datetime});
NumberVar Add:= 5;
NumberVar Added := 0;
WHILE Added < Add
Do (target := target +1;
if dayofweek (target) in 2 to 6 and not (target in holidays)
then Added:=Added+1
else Added:=Added);
Target
Is it possible to add multiple IF statements to return multiple dates based upon a specific field? Thanks.
Using CR11, SQL database. Using the below formula to return a date.
WhileReadingRecords;
DateVar Array Holidays;
DateVar Target:=date({payment.updt_datetime});
NumberVar Add:= 5;
NumberVar Added := 0;
WHILE Added < Add
Do (target := target +1;
if dayofweek (target) in 2 to 6 and not (target in holidays)
then Added:=Added+1
else Added:=Added);
Target
Is it possible to add multiple IF statements to return multiple dates based upon a specific field? Thanks.