jrabenhorst
IS-IT--Management
Hey everyone. So here's my newest problem. I'm building a database for an insurance company and I'm having some trouble getting a calculation to show up correctly on my form. I have two values... a total funeral bill, and a total amount filed. First I have to compare these two values to get the correct amount to discount for the insurance company. I'm using this formula in a footer of the form to calculate the discount.
=IIf([TotalFuneralBill]>Sum([TotalAmountFiled]),(Sum([TotalAmountFiled])),[TotalFuneralBill])
It's working fine, but I can't seem to get a sum of the values this expression creates. Everytime I try something in the report footer, I get a message about aggregate expressions. Does anyone have any ideas about how I can get the total I need? Thanks
=IIf([TotalFuneralBill]>Sum([TotalAmountFiled]),(Sum([TotalAmountFiled])),[TotalFuneralBill])
It's working fine, but I can't seem to get a sum of the values this expression creates. Everytime I try something in the report footer, I get a message about aggregate expressions. Does anyone have any ideas about how I can get the total I need? Thanks