Solved

Issue with running total in an access form

Posted on 2013-10-28
6
452 Views
Last Modified: 2013-10-30
Hi,
I have a seemingly simple issue with the attached form in access

currently the form "frm_qry_tbl_visa_imports" has a total text field that calculates the totals of "Amounts".

I am trying to make it so that it only does a running total of the records where "Assigned" is check as somebody checks them. So if none are checked, the total should be zero.

thanks,
Vinnie
PBJ-test-and-Trial.accdb
0
Comment
Question by:damixa
[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
  • 2
  • 2
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39606001
0
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 39606006
Use this in your Total Selected text box control source:

=Sum(IIf([Assigned]=-1,[amount],0))

In your Assigned checkbox On Click event enter this:

Me.Refresh

That should update the total as the boxes are checked.

Flyster
0
 

Author Comment

by:damixa
ID: 39606079
Thanks so much. Works like a charm

Vinnie
0
 

Author Comment

by:damixa
ID: 39606137
I've requested that this question be closed as follows:

Accepted answer: 0 points for damixa's comment #a39606079

for the following reason:

Thanks a ton. Works like a charm
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39606138
damixa,

you are requesting to close the Q with your post as the accepted answer???
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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

726 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