Summing Percent of Totals Calculation - Pro Rata Apportion Problem

P

pcross29

Hi. I'm apportioning a City's TotalPremium to their Departments based
on each Department's Payroll. I have a main form containing the Total
Premium to be apportioned. I have a subform based on a query
generating each Department's Payroll.

So, in my Subform's detail section I'm showing:

[Department]
[Payroll]
[txtPercentShareOfPayroll] ( =[Payroll] / Sum([Payroll] )
[txtDeptPremium] ( =[TotalPremium] from MainForm * [txtDeptPremium] )

The above works. I run into problems in the Subforms footer section
where I want totals.I can only get a total payroll:

[txtPayrollTotal] ( = Sum([Payroll]) - this works)

I cannot get a total of those 2 calculated controls. For example,
neither of these work:

txtTotalPercentShareOfPayroll = Sum ( [txtPercentShareOfPayroll] )
txtTotalPercentShareOfPayroll = Sum ( ( [Payroll] / Sum([Payroll]) ) )

Any other suggestions?

Thanks a lot for looking ....

Paul
 

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