Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOTALS Subform

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I thinks its a dummy question, searching previous I could not find the right answer.

I have a subform, listing a few lines (orders) of record, for each order there are fields [PRICE] [PRICEVAT] [PRICETOT]. I need to get the subtotal in the footer on this subform.

Code:
=Sum([PRICE]*[NUMBER])

I get the #error message when trying to get the sum of PRICETOT [PRICE+VAT] * ORDERED NUMBERS
 
Code:
=[Order Details Subform].Form![Order Subtotal]

I found this, but this is placed on the main form referencing to the subform and not in the footer of the subform.
 
You wanted this ?
=Sum(([PRICE]+[PRICEVAT])*[NUMBER])

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
it could be that, but refering to the name of the textbox where the a previous calcualation is made, is not working fine. I solved it by simple write out the complete calculation, not refering to a unbound textbox.

Code:
=Round(nz(Sum(([SELLPRICE]+([SELLPRICE]*[TARIF]/100)))*[ODNUMBER]);2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top