Solved

Microsoft Access help with Sum

Posted on 2013-10-28
10
331 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Record with #Error 8 33
default combobox value 12 18
Problem with vba code 4 44
Question about formatting a report 11 20
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

830 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