Running total on a form

papapapa

New Member
Joined
Nov 15, 2004
Messages
3
Access 97.

I'm new at this so bear with me.

On my form, there is are, among others, 3 fields (forget the quotes):

"Profit_To_Date"
"Profit".
"Shipping_Profit".

I want "Profit_To_Date" to derive its value from "Profit" (which includes "Shipping_Profit"), and to be updated on each record.

Repeat:
"Profit_To_Date" is the total of "Profit" and "Shipping_Profit".

"Profit" is a calculated field.

Can someone kindly help me with this and give an example?

The simpler, the better.

Thank You.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Thanks for the link. I tooked a good look at it. It's over my head.
Is there a rather simple way to accomplish the task, maybe with an example?

Thanks.
 
Upvote 0
The MS article is pretty straighforward, it just involves adding a control with a calculated field to your form, I'm aware of no easier way. The only other method I've seen used a UDF, and it wasn't very effective (referenced in the above article).

What part is over your head, do you know how to build a query? You're going to have to do that. Given the breadth of information on this subject, without a specific request, its discussion is not warranted.

As promised, your example is here:
www.theillumni.com/cort/runningSum.zip

Hope this helps,
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,242
Members
451,756
Latest member
tommyw

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