Hi to All:

First of all i'm newbie with CR and his formulas...

I have this little code in crystal reports in one formula:

Code:
if {lancamentos.livro}="Venda de Mercadorias" then
sum ({lancamentos.txredvaloriva})
The code reconize the instructions the problem is that sum sum all the records,in the field lancamentos.txredvaloriva,but I just want the instruction sum sum the records that be "Venda de Mercadorias"...

Any suggestion please?

Thanks