Adding field from Sub form to main form

G

Guest

I have an order form with an Order Number and some Customer Information and
use a subform enableing input of each line item. The line item has item
number, price and weight.
I would like to keep a running total of the price and weight on the main
order form. I cant seem to conceptualize the process. I was thinking of
just adding the field from the sub to the main but on what event, make it
happen just once. I must be having brain freeze.
 
M

Marshall Barton

NNlogistics said:
I have an order form with an Order Number and some Customer Information and
use a subform enableing input of each line item. The line item has item
number, price and weight.
I would like to keep a running total of the price and weight on the main
order form. I cant seem to conceptualize the process. I was thinking of
just adding the field from the sub to the main but on what event, make it
happen just once. I must be having brain freeze.


The subform must calculate its own totals in its header or
footer sections. The text box expression would be like:

=Sum(Price)

Then the main form can use a text box to display the total
from the subform by using this kind of ecpression:

=subformcontrol.Form.totaltextbox
 

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