Using Peachtree Premium 2010, Crystal Reports 2008 on pervasive SQL database engine.
I am trying to create a group based on account numbers.
I created the formula:
If (InStr({Chart.AccountID} in ["5000" to "5900"])>0) then 1
else if (InStr({Chart.AccountID} in ["6000" to "6399"])>0) THEN 2
ELSE IF (InStr({Chart.AccountID} IN ["6400" TO "6900"])>0) THEN 3
ELSE IF (InStr({Chart.AccountID} IN ["7000" TO "7005"])>0) THEN 4
ELSE IF (InStr({Chart.AccountID} IN ["7025" TO "7960"])>0) THEN 5
ELSE IF (InStr({Chart.AccountID} IN ["8025" TO "8650"])>0) THEN 6
I receive an error when I try to save the formula: not enough arguments have been given to this function.
How can I fix this formula?
I am trying to create a group based on account numbers.
I created the formula:
If (InStr({Chart.AccountID} in ["5000" to "5900"])>0) then 1
else if (InStr({Chart.AccountID} in ["6000" to "6399"])>0) THEN 2
ELSE IF (InStr({Chart.AccountID} IN ["6400" TO "6900"])>0) THEN 3
ELSE IF (InStr({Chart.AccountID} IN ["7000" TO "7005"])>0) THEN 4
ELSE IF (InStr({Chart.AccountID} IN ["7025" TO "7960"])>0) THEN 5
ELSE IF (InStr({Chart.AccountID} IN ["8025" TO "8650"])>0) THEN 6
I receive an error when I try to save the formula: not enough arguments have been given to this function.
How can I fix this formula?