Calculations in subforms

G

Graeme at Raptup

Hi,
I have a form with 2 subforms.
Job (Main form)
Quote (1st subform)
Cost Details (2nd subform)

In the Cost Details (datasheet) I have as calculated:
CostAmount = ([CostPrice]*[Units])
LineCost = (([CostPrice]*[Units])*(1-[CostDiscount]))

In the footer (not visible) I have;
SubTotal = Sum((([CostPrice]*[Units])*(1-[CostDiscount])))

Now I'd like to get the SubTotal for each QuoteID (in the 1st Quote subform)
visible for each record in the 1st subform.
I know how to enter it onto the main form as;
Quote SubTotal = [frm_CostDetails Subform].Form! SubTotal

But I want to have the field in the 1st subform.

And then I want to have a Job_Total calculation on the main form that sums
all the quote sub totals.

As always, any help is much appreciated!
Graeme
 

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