Solved

continuous forms (Access) grand total

Posted on 2004-09-29
4
394 Views
Last Modified: 2012-05-05
Hi there,

I have a telephone order database which I need to compile monthly stats from.

I have created a query which asks for a date range which it then displays in a continuous form.  

Now - I need it to give me a grand total for the whole range - but all I can get is a total for that LINE in the totals box I created in the form footer.

How can I get it to do a grand total for the entire range?  On each line there is 4 x fields for product price and then a delivery price box.  Each line needs to be totalled and then the entire rangethat is displayed.  
0
Comment
Question by:herbacious
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 125 total points
Comment Utility
Hello herbacious,


In the form footer add a texbox and type the formula into it:
=sum([yourfieldnamehere])

Do this for each field you want to sum.

To total an individual line in the delivery price box type a formula:
= field1 + field 2 + field3 + field4
using your own field names, of course.

If you want a grand total of this you need another box in the form footer with the formula:

=Sum(field1 + field 2 + field3 + field4)


Pete
0
 

Author Comment

by:herbacious
Comment Utility
Thanks Pete

I got the first part working - totalling up each column at the bottom

So, I have at the bottom in the footer a total for each column - but when I try and total up these totals - it brings an error display in the text box - and then all of the above totals that were working fine up to that point!!!

I think it could be the exact syntax of what I am putting in.  

Whats the easiest way of putting this expression into the box?  Is the code builder the best?  

What syntax do I need to enter in the grand total box?

I tried =Sum([price1total]+[price2total]+[deliverypricetotal]) - but this brought the above error.  

Any clues?  
0
 

Author Comment

by:herbacious
Comment Utility
Pete,

SORTED!!!!!

God knows what I was doing - But I just had a coffee and a fag - came back to it - tried it again and its working (like a dream).

Thanks mate!
0
 

Author Comment

by:herbacious
Comment Utility
oh - by the way - fag means "cigarette" in the UK.  

If your not from the UK.  
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now