Solved

Microsoft Access help with Sum

Posted on 2013-10-28
10
329 Views
Last Modified: 2013-11-01
I'm trying to get all the Medications charges to display on the bottom of one of our forms.  See screen shots.  I've tried different formulas with no success.
medications.png
medications2.png
0
Comment
Question by:J.R. Sitman
  • 4
  • 4
  • 2
10 Comments
 
LVL 15

Expert Comment

by:Ess Kay
ID: 39606733
you need to make a running sum, or a function which queries the database


running sum:   https://office.microsoft.com/en-us/access-help/calculate-a-running-sum-cumulative-total-HP005187388.aspx
0
 

Author Comment

by:J.R. Sitman
ID: 39606771
I read the article and it applies to a Report.  This is a form.  There is no Running Sum.
0
 
LVL 15

Expert Comment

by:Ess Kay
ID: 39606877
ah.. then just do =MedicationsCost
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:J.R. Sitman
ID: 39606918
didn't work.  Only gave me the amount in then first field.  See attached.
medical3.png
0
 
LVL 15

Expert Comment

by:Ess Kay
ID: 39606939
is that a subform?
0
 
LVL 15

Assisted Solution

by:Ess Kay
Ess Kay earned 200 total points
ID: 39606945
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 200 total points
ID: 39607014
If you want a total of all the charges, you can do this in a form footer, or in a subform.  Try placing a textbox in the form footer, with the ControlSource of =Sum([MedicationsCost]).  A true running sum can only be done in a report, but I think you just want a total, so this method should work.
0
 

Author Comment

by:J.R. Sitman
ID: 39607068
Yep, that's where it is.  see attached.  I haven't read the article yet in the previous post.
medical4.png
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 39607223
I don't see the MedicationsCost field on the form.  What do you get in the Sum field in the footer?  If this is a calculated field on the form, you may need to put the entire expression in the Sum() parentheses.
0
 

Author Closing Comment

by:J.R. Sitman
ID: 39617978
Thanks for the help
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…

815 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

9 Experts available now in Live!

Get 1:1 Help Now