Have a little problem I can't locate... Have a field on a report, all fields are unbound, for the sum of commisions... control is =Sum([CommissionPayable])
CommissionPayable is set to currency and decimal 2.... CommissionPayable source is rather lengthy....
CommissionPayable: IIf([TxtDateDiff]>365 And [JobLeadAssigned]=True,([Commission]/6),IIf([JobLeadAssigned]=True,([Commission]/2),IIf([TxtDateDiff]>365 And tblJobs.ServiceTypeID=1,([Commission]/3),IIf([CommissionPaid]=True,0,[Commission]))))
Property set to currency.......
This field draws on "Commission" field.... Lengthy too.......
Commission: IIf([JobInvoicePaid]=True And tblJobs.ServiceTypeID=1 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=7 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=5 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=3,(([ContractPrice])-Nz([JobSubAmount]))*0.03,IIf([JobInvoicePaid]=True And tblJobs.ServiceTypeID=2,(([ContractPrice])-Nz([JobSubAmount]))*0.05,0))
Also set to currency.......
But the commission payable is adding up wrong........ Any guesses as to where I am getting the addition error????
CommissionPayable is set to currency and decimal 2.... CommissionPayable source is rather lengthy....
CommissionPayable: IIf([TxtDateDiff]>365 And [JobLeadAssigned]=True,([Commission]/6),IIf([JobLeadAssigned]=True,([Commission]/2),IIf([TxtDateDiff]>365 And tblJobs.ServiceTypeID=1,([Commission]/3),IIf([CommissionPaid]=True,0,[Commission]))))
Property set to currency.......
This field draws on "Commission" field.... Lengthy too.......
Commission: IIf([JobInvoicePaid]=True And tblJobs.ServiceTypeID=1 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=7 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=5 Or [JobInvoicePaid]=True And tblJobs.ServiceTypeID=3,(([ContractPrice])-Nz([JobSubAmount]))*0.03,IIf([JobInvoicePaid]=True And tblJobs.ServiceTypeID=2,(([ContractPrice])-Nz([JobSubAmount]))*0.05,0))
Also set to currency.......
But the commission payable is adding up wrong........ Any guesses as to where I am getting the addition error????