Hello, I have a production scheduling database with a main form with a field that totals task cost by using:
=[Tasks subform]![SumOfCost] in a field which causes the field to update based on a value that's calculated in a subform for various tasks that are added to the subform. As I add tasks and their costs to the subform, the main form is supposed to accrue the costs in the field that I mentioned above.
It worked great when all I did was type in a dollar/cost value in the subform field for each task I added to the subform. The field in the main form updated and accrued costs flawlessly. However, the subform got complicated when boss wanted to add fields to the subform for other related costs such as materials costs. So I created an equation in the subform field to total the various costs from other fields in the subform and it works great on the subform. The subform field for each task calculates the cost correctly but now those total costs do not show up in the field in the main form. The subform equation is: =[Outside Services Cost]+[Material Cost]+[Billing Rates]*[Labor Hours]
Greatly appreciate any and all help in getting the field in the main form to update and accrue the costs being added to the subform tasks.
=[Tasks subform]![SumOfCost] in a field which causes the field to update based on a value that's calculated in a subform for various tasks that are added to the subform. As I add tasks and their costs to the subform, the main form is supposed to accrue the costs in the field that I mentioned above.
It worked great when all I did was type in a dollar/cost value in the subform field for each task I added to the subform. The field in the main form updated and accrued costs flawlessly. However, the subform got complicated when boss wanted to add fields to the subform for other related costs such as materials costs. So I created an equation in the subform field to total the various costs from other fields in the subform and it works great on the subform. The subform field for each task calculates the cost correctly but now those total costs do not show up in the field in the main form. The subform equation is: =[Outside Services Cost]+[Material Cost]+[Billing Rates]*[Labor Hours]
Greatly appreciate any and all help in getting the field in the main form to update and accrue the costs being added to the subform tasks.