Solved Sum #Error in Form

accessonly11

Member
Local time
Today, 07:23
Joined
Aug 20, 2022
Messages
91
hi guys i m facing this error on my order details subform. the fields (which sums i need on subform footer) are calculated fields
1662470731159.png

1662470508339.png

order details table design view
1662528328969.png
i need the sums of RetailPriceT and SalePriceT fields, which later i will refer on mainForm.Footer.Field


Design view of order details subform
1662470731159.png


subform footer controls with control source, text name is text457
1662470827398.png


main footer field control source
1662470770443.png


this is the normal view of mainform when it load, it is empty
1662528733099.png

...
if there is any old thread which sovle the same problem, then refer me please.
 
you upload your db again.
 
i created Query, qryTotals.
on each Total textbox on the Footer of the subform, i Dlookup() the value.

also your Order form is always Adding record (pencil on the record selector),
so i just set the Default value of the customerid combobox to (11).
 

Attachments

that is the proper way.
but what if i want the values of gross total and net total on order form get stored on order table.
 
but what if i want the values of gross total and net total on order form get stored on order table.
not recommended, since you already has the Query.
think of it as you are saving it in another table (but actually it is a query).
the Query will always return correct value.
 

Users who are viewing this thread

Back
Top Bottom