awise
IS-IT--Management
- Dec 11, 2001
- 85
I have the following formula:
This should return a value of 2 total. The dbase has 6 entries, but every three entries denotes one access to the log file it pertains to. So, the result should be 2 total, without the division by 3, a total of 6. However, it is giving me a total of 3 with the division, and 9 without the division. Am I doing something incorrect within the loop?
Thanks in advance,
David
Code:
NumberVar LoopCounter := 1;
NumberVar CompCounter := 0;
For LoopCounter := 1 to Count({exmaster.Col008}) Step 1 Do
(
if {exmaster.Col008} = "/reports/crystal/jbiocca/SalesbyTerrCustProduct.rpt" then CompCounter := CompCounter + 1
else CompCounter := CompCounter;
LoopCounter := LoopCounter + 1;
);
CompCounter := CompCounter/3
This should return a value of 2 total. The dbase has 6 entries, but every three entries denotes one access to the log file it pertains to. So, the result should be 2 total, without the division by 3, a total of 6. However, it is giving me a total of 3 with the division, and 9 without the division. Am I doing something incorrect within the loop?
Thanks in advance,
David