MS Access 2003 - Forms - SUM function

Hello Experts,
I have a form in Access named customer.  This form displays customer details with the fields:
cust_id, name, address, phone

This form also has a related subform named order. The subform contains a list of transactions related to the current customer on the parent form. The fields are:

cust_id, ord_id, description, value

I want the parent form named customer to display the total value of all transactions in the subform. Ive tried to do this using a text box on the parent form with the following:

=Sum([Forms]![order.value])

But it produces and error.

Can you please let me know what I am doing wrong?

Thank you.
janice12345Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TextReportCommented:
In the SubForm put in a textbax called txtSUM with a controlsource of =SUM(Value) then in the main form put in a textbox called txtSubFormTotal with a control source of =Forms!Customer!Order.Form!txtSUM

I am assuming the Sub Form Control Name is Order but you may wish to check this as it may be different from the name of the subform.

Cheers, Andrew
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
peter57rCommented:
Look at the Orders form in Northwind and you'll see how this is done.
You need to create the subform total in the subform and then set the control source of an unbound textbox on the main form to the Total on the subform.

0
janice12345Author Commented:
Andrew, got it working. Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.