Running Totals

T

Trevor Aiston

I have a form which has a calculated control [Text35] to sum the values of 6
fields on the for
=(Val([Text29])+Val([Text30])+Val([Text31])+Val([Text32])+Val([Text33])+Val([Text34]))

Is there a way to show a running rum of all records on the form?

I've tried puting a calculated control in the footer
=Sum([Text35]).
But returns an error?

TIA
Trevor
 
W

Wayne-I-M

Try

=sum(Val([Text29])+Val([Text30])+Val([Text31])+Val([Text32])+Val([Text33])+Val([Text34]))

Also you may want to add the Nz function if any of your control may be null

=sum(Nz([ControlName],0)+Nz([AnotherControlName],0))
 
T

Trevor Aiston

Thanks for the suggestions

Tried 1st suggestion, still error.

Tried a test of
Sum(NZ([Text29],0)+NZ([Text30],0))

But still error.

ANy other suggestions?

Wayne-I-M said:
Try

=sum(Val([Text29])+Val([Text30])+Val([Text31])+Val([Text32])+Val([Text33])+Val([Text34]))

Also you may want to add the Nz function if any of your control may be null

=sum(Nz([ControlName],0)+Nz([AnotherControlName],0))


--
Wayne
Manchester, England.



Trevor Aiston said:
I have a form which has a calculated control [Text35] to sum the values of 6
fields on the form
=(Val([Text29])+Val([Text30])+Val([Text31])+Val([Text32])+Val([Text33])+Val([Text34]))

Is there a way to show a running rum of all records on the form?

I've tried puting a calculated control in the footer
=Sum([Text35]).
But returns an error?

TIA
Trevor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top