Microsoft
Software
Hardware
Network
Question : Manual Running total displaying 0.00 when copyed from another that works.
Ok I need another set of eyes here because I'm afraid I'm losing my mind...
I have a manual running total called Over that works fine it's three formulas are as follows:
OverRest:
WhilePrintingRecords;
numberVar Over := 0;
NumberVar OverTotal :=0;
Over$:
NumberVar Over;
numbervar OverTotal;
if {CB_Originator_View.ComTyp
e} = 1
and Sum ({ISB_Commissions_view.tot
alloanamou
nt}, {@LO}) < 1500000 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.5
else if {CB_Originator_View.ComTyp
e} = 1
and Sum ({ISB_Commissions_view.tot
alloanamou
nt}, {@LO}) in 1500000 to 2499999 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.6
else if {CB_Originator_View.ComTyp
e} = 1
and Sum ({ISB_Commissions_view.tot
alloanamou
nt}, {@LO}) >= 2500000 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.65
else if {CB_Originator_View.ComTyp
e} = 2 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.6
else if {CB_Originator_View.ComTyp
e} = 3 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.65
else if {CB_Originator_View.ComTyp
e} = 4 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.75
else if {CB_Originator_View.ComTyp
e} = 5
and Sum ({ISB_Commissions_view.tot
alloanamou
nt}, {@LO}) <= 2500000 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.6
else if {CB_Originator_View.ComTyp
e} = 5
and Sum ({ISB_Commissions_view.tot
alloanamou
nt}, {@LO}) > 2500000 then Over:={ISB_Commissions_vie
w.totalloa
namount} * {LO_Commisions.OverageBasi
s} * 0.65;
OverTotal:=OverTotal+Over;
Over
OverDisplay:
WhilePrintingRecords;
NumberVar OverTotal;
Now I have another field that works very similarly so I addapted the same 3 formulas as follows:
Over1Reset:
WhilePrintingRecords;
numberVar Over1 := 0;
NumberVar OverTotal1 :=0;
Over1$:
NumberVar Over1;
Numbervar OverTotal1;
If {CB_Originator_View.OverTy
pe} = "1" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.0005
else if {CB_Originator_View.OverTy
pe} = "2" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.000425
else if {CB_Originator_View.OverTy
pe} in "3" to "10" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.000325
else if {CB_Originator_View.OverTy
pe} = "11" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.000333
else if {CB_Originator_View.OverTy
pe} in "12" to "15" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.000325
else if {CB_Originator_View.OverTy
pe} = "16" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.00025
else if {CB_Originator_View.OverTy
pe} = "17" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.0001875
else if {CB_Originator_View.OverTy
pe} = "18" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.0005
else if {CB_Originator_View.OverTy
pe} = "19" then Over1:={ISB_Commissions_vi
ew.totallo
anamount} *.000375;
OverTotal1:=OverTotal1+Ove
r1;
Over1
Over1Display:
WhilePrintingRecords;
NumberVar OverTotal1;
The Over1$ works fine and shows the correct number in the details section but the Over1Display allways show 0.00. Wha the heck am I missing?
Answer : Manual Running total displaying 0.00 when copyed from another that works.
LOL. Change:
Numbervar OverTotal1;
to:
Shared Numbervar OverTotal1;
in all formulas. No, I can't explain why it didn't work like the first report.
Random Solutions
Globally change the Blackberry Service Display name
Developing an iPhone application -- requisites
PHP/Javascript newbie - need help integrating niftycube into my site
Case statement based on query
Audit Report Generation SharePoint Content Viewing
How to find the row count in an Oracle DataReader in ASP.NET?
DAG & CAS array configured but it's not failover
Can I use VBA in an Access pivot chart form?
Symantec BackupExec 2010 VMware ESX 3.5 x64 guests fails with 'An attempt to take a snapshot of a virtual machine failed because it was unable to quiesce an application'
jQuery Autocomplete with PHP / MySQL [PART 3]