Totals box in a form

millerlite2ky

Board Regular
Joined
Oct 25, 2002
Messages
87
Is there a way that I can get a Total or a Sum put on a form, from the records being displayed in a Subform?

Scott
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi Scott,

Say you have a subform named as "mysubform".
You want to get total of values in a field resides in mysubform's detail section. And this field's name is "myfield".

1- Display Header and Footer in subform (right click on detail and point to Form Header/Footer).
2- Create a textbox on subform Footer and name it as "mytotal".
3- Change mytotal ControlSource property as following

=Sum([myfield])

4- Goto parent form and create a text box on it.
5- Change this new textbox's ControlSource property as following

=[mysubForm].Form.mytotal

That's it. I hope it helps.

Suat
 
Upvote 0
You can send me your partial database that has required objects in it to let me set it for you if you like.

smozgur-at-tnn.net

Suat
 
Upvote 0
Hi Scott,

It should be my missing description. we should use subform object name in form, not subform's form name.

[Results] = subform object name in your main form so we should use :

=[Results].Form.racetotal

in the main form text box ControlSource property.

Suat
 
Upvote 0

Forum statistics

Threads
1,221,773
Messages
6,161,855
Members
451,724
Latest member
sledparty

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top