Toal Amount

M

mavis

Dear All,

In a report there are 2 fields (ClaimedAmounttxt, Exposuretxt).
Formalu in the field:
ClaimedAmounttxt--> =[ClaimedAmount]/[ValuableROE]
Exposuretxt -->
=IIf([ClaimedAmounttxt]>=[CargoDeductible],[CargoDeductible],[ClaimedAmounttxt])

At the end of the report i have the total Exposure field with the below
forumla.
=Sum(IIf([ClaimedAmount]>=[CargoDeductible],[CargoDeductible],[ClaimedAmount]))

The total amount from the above forumla is wrong. can anyone advice what is
the problem with my code?

Thanks. I need this help ASAP.
 
S

Steve Schapel

Mavis

Try it like this:
=Sum(IIf([ClaimedAmount]]/[ValuableROE]>=[CargoDeductible],[CargoDeductible],[ClaimedAmount]))

If that doesn't help, please explain, with specific examples, what you mean
by "wrong".
 
M

mavis

Hi Steve,

I had removed extra "]" in the code. It code generate out an amount, but the
amount ($20430.5) is wrong.
It is not the total of the Exopsure.
The total amount should be $1604.67+$6050+$6050+$6050+$225.06+$19979.73.



Steve Schapel said:
Mavis

Try it like this:
=Sum(IIf([ClaimedAmount]]/[ValuableROE]>=[CargoDeductible],[CargoDeductible],[ClaimedAmount]))

If that doesn't help, please explain, with specific examples, what you mean
by "wrong".

--
Steve Schapel, Microsoft Access MVP


mavis said:
Dear All,

In a report there are 2 fields (ClaimedAmounttxt, Exposuretxt).
Formalu in the field:
ClaimedAmounttxt--> =[ClaimedAmount]/[ValuableROE]
Exposuretxt -->
=IIf([ClaimedAmounttxt]>=[CargoDeductible],[CargoDeductible],[ClaimedAmounttxt])

At the end of the report i have the total Exposure field with the below
forumla.
=Sum(IIf([ClaimedAmount]>=[CargoDeductible],[CargoDeductible],[ClaimedAmount]))

The total amount from the above forumla is wrong. can anyone advice what
is
the problem with my code?

Thanks. I need this help ASAP.
 
S

Steve Schapel

Mavis,

We can continue this discussiuon in the other forum where it has come up.
 
A

Andrzej Sagan

Użytkownik "mavis said:
Dear All,

In a report there are 2 fields (ClaimedAmounttxt, Exposuretxt).
Formalu in the field:
ClaimedAmounttxt--> =[ClaimedAmount]/[ValuableROE]
Exposuretxt -->
=IIf([ClaimedAmounttxt]>=[CargoDeductible],[CargoDeductible],[ClaimedAmounttxt])

At the end of the report i have the total Exposure field with the below
forumla.
=Sum(IIf([ClaimedAmount]>=[CargoDeductible],[CargoDeductible],[ClaimedAmount]))

The total amount from the above forumla is wrong. can anyone advice what
is
the problem with my code?

Thanks. I need this help ASAP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top