J
jammamom
I have a rather complex question. A bit of background first... I have a
table containing fields for InsuranceType, IssueDate, PremiumAmount, and
CancellationDate. Users add/edit information via a form. What I need to do
is calculate total monthly premiums for each type of insurance. Sounds easy,
but I need to add premium amounts for insurance sold and subtract premium
amounts for any records that contain a cancellation date. The query I have
thus far is:
InsuranceTypeID
tblInsuranceType
Group By
Criteria: "1"
CancellationDate
tblInsurance
Group By
Expr1:
Sum(IIf([CancellationDate]=True,[tblInsurance]![PremiumAmount]*-1,[tblInsurance]![PremiumAmount]))
Expression
The result I get is a list of premiums for that insurance type with
cancelled premiums shown as negatives, i.e. ($123.45). Where do I go from
here? Is there an easier way to get to the result I'm looking for? I'm
rather new to Access and am using Access 2000. Any guidance will be greatly
appreciated.
Thank you,
Jen
table containing fields for InsuranceType, IssueDate, PremiumAmount, and
CancellationDate. Users add/edit information via a form. What I need to do
is calculate total monthly premiums for each type of insurance. Sounds easy,
but I need to add premium amounts for insurance sold and subtract premium
amounts for any records that contain a cancellation date. The query I have
thus far is:
InsuranceTypeID
tblInsuranceType
Group By
Criteria: "1"
CancellationDate
tblInsurance
Group By
Expr1:
Sum(IIf([CancellationDate]=True,[tblInsurance]![PremiumAmount]*-1,[tblInsurance]![PremiumAmount]))
Expression
The result I get is a list of premiums for that insurance type with
cancelled premiums shown as negatives, i.e. ($123.45). Where do I go from
here? Is there an easier way to get to the result I'm looking for? I'm
rather new to Access and am using Access 2000. Any guidance will be greatly
appreciated.
Thank you,
Jen