Joined: 10 Dec 2012
Online Status: Offline
Posts: 15
Posted: 13 Dec 2012 at 11:22pm
I putted all the fields on the body report and everything is as I expcted
Local numberVar x :=x ;
Local numberVar y :=y ;
Local numberVar z :=z ;
x :={#nr_Vitellini};
y :={#nr_Vacche};
z :={@diff_vit_vac};
if ({VR_CLASSIFICA_PS.ID_ATT_ORIG} like '*J10B*' and {#countCapre}>0) or ({VR_CLASSIFICA_PS.ID_ATT_ORIG} like '*J09B*' And {#countePecore}>0) or ({VR_CLASSIFICA_PS.ID_ATT_ORIG} like '*J11*' and {#countScrofe}>0) or ({VR_CLASSIFICA_PS.ID_ATT_ORIG} like '*J02*' and (x<=y)) then 0 else if {VR_CLASSIFICA_PS.ID_ATT_ORIG} like '*J02*' and x>y then z*{VR_CLASSIFICA_PS.PS} else {VR_CLASSIFICA_PS.PS_AGG_NO_P}
I added z as difference between vitellini and vacche . It works on the body report but not in the formula
Joined: 10 Dec 2012
Online Status: Offline
Posts: 15
Posted: 13 Dec 2012 at 11:36pm
Maybe I understood where is the problem I can't read the code wich start with the same letter J02 J07 because if I punt vitellini(J02)=34 on the body record I have the same value for J04 J06 J07 but the real value for J04 is =0 and J06=0 and J07=21
Joined: 10 Dec 2012
Online Status: Offline
Posts: 15
Posted: 19 Dec 2012 at 12:06am
It works .... I'm very happy and my boss too.......... I have to say thanks to you for your incredible help, the problem was the order of the values on the report
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum