Forms And Subforms

G

Guest

--I have a main form that contains two datasheet subforms. I would like to
move the footer totals from the second subforms to the main footer totals.
How can you see if my formula is right in the second subform?
Also my total in the main footer is getting #Name. Do I need to link it
from the main form, then the first subform, then the second subform. I keyed
main form and second subform name only and I get in the main form footer
#Name error.
I am new at this.
Thanks

Lacey
 
D

Duane Hookom

Please provide the names of your subforms and the controls from the subforms
that you want displayed on the main form.
 
G

Guest

-- Duane,
The first subform is CustomerSalesOrder, the second subform where I want the
Totals in the footer is called Subform IndividualItemsSoldtoCustomers the
controls for this subform footer are
The controls in IndividualItemsSoldtoCustomers are
Sales/Invoice#ID
SaleDateProduct/Service#ID
Comment
QuantitySold
PriceperUnit
TaxableAmount if no tax is 0
Total is calculated =([QuantitySold]*[Priceper
Unit])

The controls in the footer for IndividualItemsSoldtoCustomers are

TaxTotal =Sum([Nz([TaxableAmount].0)
SalesTax =Sum([TaxableAmount]*0.06)
GrandTotal =([TaxableAmount]*0.06+[QuantitySold}*[PriceperUnit])

The main form is called Customer Addresses where I want the total move to.

Thanks
Lacey
 
D

Duane Hookom

Try a text box on your main form with a control source of:
=IndividualItemsSoldToCustomers.Form!GrandTotal

--
Duane Hookom
MS Access MVP
--

Lacey said:
-- Duane,
The first subform is CustomerSalesOrder, the second subform where I want
the
Totals in the footer is called Subform IndividualItemsSoldtoCustomers
the
controls for this subform footer are
The controls in IndividualItemsSoldtoCustomers are
Sales/Invoice#ID
SaleDateProduct/Service#ID
Comment
QuantitySold
PriceperUnit
TaxableAmount if no tax is 0
Total is calculated =([QuantitySold]*[Priceper
Unit])

The controls in the footer for IndividualItemsSoldtoCustomers are

TaxTotal =Sum([Nz([TaxableAmount].0)
SalesTax =Sum([TaxableAmount]*0.06)
GrandTotal =([TaxableAmount]*0.06+[QuantitySold}*[PriceperUnit])

The main form is called Customer Addresses where I want the total move to.

Thanks
Lacey




Duane Hookom said:
Please provide the names of your subforms and the controls from the
subforms
that you want displayed on the main form.
 

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

Similar Threads

Subform Question 2
Access Daily Entry with multiple entries per field 0
Subform and Main From calucation 14
Correct Nz syntax when summing? 4
Forms and subforms 2
Subform question 2
Access Reference Subform's Control 0
Subform record coordination 2

Top