?
Solved

continuous forms (Access) grand total

Posted on 2004-09-29
4
Medium Priority
?
414 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 500 total points
ID: 12179742
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
ID: 12180295
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
ID: 12180319
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
ID: 12188030
oh - by the way - fag means "cigarette" in the UK.  

If your not from the UK.  
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 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