Solved

continuous forms (Access) grand total

Posted on 2004-09-29
4
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 125 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

739 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