views:

1567

answers:

1
WhileReadingRecords;
numbervar ContadorVenda=0;
IF {RELATORIO_ANGLO.tp_movimento} = "V" THEN
    ContadorVenda:=ContadorVenda+1;

How do I make this formula to show the value of "ContadorVenda" on the report ?

+2  A: 

Just add a ContadorVenda; at the end. Like so:

WhileReadingRecords;
numbervar ContadorVenda=0;
IF {RELATORIO_ANGLO.tp_movimento} = "V" THEN
    ContadorVenda:=ContadorVenda+1;

ContadorVenda;
DJ
Still not working .. It's supposed to run all the fields in the table RELATORIO_ANGLO and look for V's but it's like it's not counting..
Daniel
The formula has to be on a detail section
DJ