cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in Formula Field

Former Member
0 Kudos

Hello,

I got this error

I dont know how to fixe.

Please help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

James

You can't write the If statement in that position.

It cannot stand by itself like that in crystal.  ( that's why crystal is confused by the ")" .   It doesn't know how to interpret  what you wrote. )

  you need to  Incorporate the "if"  after the last "="  to   replace the Column6_1 field in the last line with the if statement.     

Ted

Former Member
0 Kudos

Hello Ted,

I can't imagine what you said. Can you coaching me - What the code should looks like?

former_member205840
Active Contributor
0 Kudos

Hi James,

Can you try this :

Whileprintingrecords;

Numbervar column6_1;

If {DataTable1.DataColumn3} = Left({DataTable1.DataColumn4},3) &"00" Then

(

Column6_1:=column6_1+(If isnull({DataTable1.DataColumn6}) Then 0 else Toumber({DataTable1.DataColumn6})

)

Thanks,

Sastry

abhilash_kumar
Active Contributor
0 Kudos

Hi James,

Your code is almost perfect!

You just need a semicolon after the 'else':

else

(Column6_1_1 := {DataTable1.DataColumn6}) ; //You're missing this semicolon

-Abhilash

Answers (0)