Help!

Running Total from a calculated value

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Reports RSS
Next:  Access 2007 Trial & Enterprise Compatibility ..  
Author Message
Samuel
External


Since: Oct 08, 2009
Posts: 1



PostPosted: Thu Oct 08, 2009 9:53 pm    Post subject: Running Total from a calculated value
Archived from groups: microsoft>public>access>reports (more info?)

All,
Is there a way to do a running total on a control whose control source
is a calculated field?
There is a groupheader0 in this form.

Example
Sam
Payment: 10.00
Payment: 12.00

Total : 22

Juan
Payment: 15.00

Total: 15.00

The control which displays the payment value is a complex calculated
field based off other items on the report.
It is not possible to do the calculations within the limited
capabilites of MS-Access Query. If it was a SQL Server (no chance of
that happening), I could do the calculations within query using T-SQL
if then statements.

Thanks,
Sam
Back to top
Klatuu
External


Since: Apr 06, 2005
Posts: 1360



PostPosted: Fri Oct 09, 2009 7:39 am    Post subject: RE: Running Total from a calculated value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Certainly Jet is not as powerful as SQL Server, but are you aware you can
execute VBA functions from a Jet query? I have found it a way enhance the
calculation power.
--
Dave Hargis, Microsoft Access MVP


"Samuel" wrote:

> All,
> Is there a way to do a running total on a control whose control source
> is a calculated field?
> There is a groupheader0 in this form.
>
> Example
> Sam
> Payment: 10.00
> Payment: 12.00
>
> Total : 22
>
> Juan
> Payment: 15.00
>
> Total: 15.00
>
> The control which displays the payment value is a complex calculated
> field based off other items on the report.
> It is not possible to do the calculations within the limited
> capabilites of MS-Access Query. If it was a SQL Server (no chance of
> that happening), I could do the calculations within query using T-SQL
> if then statements.
>
> Thanks,
> Sam
>
Back to top
Marshall Barton
External


Since: Dec 07, 2003
Posts: 5120



PostPosted: Fri Oct 09, 2009 8:57 am    Post subject: Re: Running Total from a calculated value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Samuel wrote:
>Is there a way to do a running total on a control whose control source
>is a calculated field?
>There is a groupheader0 in this form.
>
>Example
>Sam
> Payment: 10.00
> Payment: 12.00
>
>Total : 22
>
>Juan
> Payment: 15.00
>
>Total: 15.00
>
>The control which displays the payment value is a complex calculated
>field based off other items on the report.


Report text boxes have a RunningSum property that will do
that.

Add another text box (named txtRunTotal) to the group footer
section and set its control source to this kind of
expression:
=[the total text box name]
and set its RunningSum property to Over All

Then a report footer text box can display the grand total by
using the expression:
=txtRunTotal

--
Marsh
MVP [MS Access]
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum