I have been going cross-eyed looking at this and wanted a second set of eyes. I keep getting a "Boolean is required Here". This formula is the 2nd part of the 3-part running total and I wanted to include all the variable into one formula (there would be over 75 formulas if I have to break it apart).
Its crapping out on this part, but it I comment it out, it will crap out on the next section above it:
(
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1 + {@Shared_PostOpBiomK1};
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count + 1;
)
Crystal XI
WhilePrintingRecords;
If {@Surgery_Type} = "Refraction"
Then
(
If {@Shared_PreOpRefCyc} <> 0 then
(
NumberVar PreOpRef_RefCyc := PreOpRef_RefCyc + {@Shared_PreOpRefCyc};
NumberVar PreOpRef_RefCycCount := PreOpRef_RefCycCount + 1;
)
AND
If {@Shared_PreOpBiomK1} <> 0 then
(
NumberVar PreOpRef_BiomK1 := PreOpRef_BiomK1 + {@Shared_PreOpBiomK1};
NumberVar PreOpRef_BiomK1Count := PreOpRef_BiomK1Count + 1;
)
AND
If {@Shared_PreOpBiomK2} <> 0 then
(
NumberVar PreOpRef_BiomK2 := PreOpRef_BiomK2 + {@Shared_PreOpBiomK2};
NumberVar PreOpRef_BiomK2Count := PreOpRef_BiomK2Count + 1;
)
AND
If {@Shared_PostOpRefCyc} <> 0 then
(
NumberVar PostOpRef_RefCyc := PostOpRef_RefCyc + {@Shared_PostOpRefCyc};
NumberVar PostOpRef_RefCycCount := PostOpRef_RefCycCount + 1;
)
AND
If {@Shared_PostOpBiomK1} <> 0 then
(
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1 + {@Shared_PostOpBiomK1};
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count + 1;
)
AND
If {@Shared_PostOpBiomK2} <> 0 then
(
NumberVar PostOpRef_BiomK2 := PostOpRef_BiomK2 + {@Shared_PostOpBiomK2};
NumberVar PostOpRef_BiomK2Count := PostOpRef_BiomK2Count + 1;
)
)
else
(
NumberVar PreOpRef_RefCyc := PreOpRef_RefCyc;
NumberVar PreOpRef_RefCycCount := PreOpRef_RefCycCount;
NumberVar PreOpRef_BiomK1 := PreOpRef_BiomK1;
NumberVar PreOpRef_BiomK1Count := PreOpRef_BiomK1Count;
NumberVar PreOpRef_BiomK2 := PreOpRef_BiomK2;
NumberVar PreOpRef_BiomK2Count := PreOpRef_BiomK2Count;
NumberVar PostOpRef_RefCyc := PostOpRef_RefCyc;
NumberVar PostOpRef_RefCycCount := PostOpRef_RefCycCount;
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1;
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count;
NumberVar PostOpRef_BiomK2 := PostOpRef_BiomK2;
NumberVar PostOpRef_BiomK2Count := PostOpRef_BiomK2Count
)
Its crapping out on this part, but it I comment it out, it will crap out on the next section above it:
(
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1 + {@Shared_PostOpBiomK1};
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count + 1;
)
Crystal XI
WhilePrintingRecords;
If {@Surgery_Type} = "Refraction"
Then
(
If {@Shared_PreOpRefCyc} <> 0 then
(
NumberVar PreOpRef_RefCyc := PreOpRef_RefCyc + {@Shared_PreOpRefCyc};
NumberVar PreOpRef_RefCycCount := PreOpRef_RefCycCount + 1;
)
AND
If {@Shared_PreOpBiomK1} <> 0 then
(
NumberVar PreOpRef_BiomK1 := PreOpRef_BiomK1 + {@Shared_PreOpBiomK1};
NumberVar PreOpRef_BiomK1Count := PreOpRef_BiomK1Count + 1;
)
AND
If {@Shared_PreOpBiomK2} <> 0 then
(
NumberVar PreOpRef_BiomK2 := PreOpRef_BiomK2 + {@Shared_PreOpBiomK2};
NumberVar PreOpRef_BiomK2Count := PreOpRef_BiomK2Count + 1;
)
AND
If {@Shared_PostOpRefCyc} <> 0 then
(
NumberVar PostOpRef_RefCyc := PostOpRef_RefCyc + {@Shared_PostOpRefCyc};
NumberVar PostOpRef_RefCycCount := PostOpRef_RefCycCount + 1;
)
AND
If {@Shared_PostOpBiomK1} <> 0 then
(
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1 + {@Shared_PostOpBiomK1};
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count + 1;
)
AND
If {@Shared_PostOpBiomK2} <> 0 then
(
NumberVar PostOpRef_BiomK2 := PostOpRef_BiomK2 + {@Shared_PostOpBiomK2};
NumberVar PostOpRef_BiomK2Count := PostOpRef_BiomK2Count + 1;
)
)
else
(
NumberVar PreOpRef_RefCyc := PreOpRef_RefCyc;
NumberVar PreOpRef_RefCycCount := PreOpRef_RefCycCount;
NumberVar PreOpRef_BiomK1 := PreOpRef_BiomK1;
NumberVar PreOpRef_BiomK1Count := PreOpRef_BiomK1Count;
NumberVar PreOpRef_BiomK2 := PreOpRef_BiomK2;
NumberVar PreOpRef_BiomK2Count := PreOpRef_BiomK2Count;
NumberVar PostOpRef_RefCyc := PostOpRef_RefCyc;
NumberVar PostOpRef_RefCycCount := PostOpRef_RefCycCount;
NumberVar PostOpRef_BiomK1 := PostOpRef_BiomK1;
NumberVar PostOpRef_BiomK1Count := PostOpRef_BiomK1Count;
NumberVar PostOpRef_BiomK2 := PostOpRef_BiomK2;
NumberVar PostOpRef_BiomK2Count := PostOpRef_BiomK2Count
)