?
Solved

Access 2010 Rolling Deduction or Negative Sum?

Posted on 2014-12-16
6
Medium Priority
?
158 Views
Last Modified: 2014-12-31
Working with a form and subform, there are examples of calculating the sum of the records on the subform and displaying the total on the form. Is it possible to have a rolling deduction? For example; 75 units were completed on an order of 100, 50 last week, 25 so far this week, with 25 left for next week.

Form: 75 units completed
                      Date Completed, Build Qty, Qty completed, Qty remaining
   subform:               last week,              50,                      50,             50
                                  this week,              25,                      25,             25
                                 next week,             25,                         0,             25

As the form units completed increases, can the subform qty completed and qty remaining fields update also?
0
Comment
Question by:D4430
[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
6 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 600 total points
ID: 40503129
you can do that using a query, upload a db with the table and related forms
0
 
LVL 34

Accepted Solution

by:
Mike Eghtebas earned 900 total points
ID: 40503144
Have you built any query for this subform with, Week, Build Qty, and Qty Completed?

If so, please paste it here. Otherwise, make a query of the table containing the data. We need this first to roll data into weeks and then add Qty remaining column.
0
 

Author Comment

by:D4430
ID: 40503548
No, I have not built any query for the subform. The subform is currently connected to a table that has Build Date and Build Qty. The form is in datasheet view and expanding the subform shows its datasheet view.

Form: OrderDate, OrderID, PartID, OrderQty, QtyComplete

   subform: BuildDate, BuildQty
0
Back Up Your Microsoft Windows Server®

Back up 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.

 
LVL 34

Expert Comment

by:Mike Eghtebas
ID: 40504204
is Date Completed or rather Week Completed derived from BuildDate?

How about Qty completed, is this field also in the subform?
0
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 40504297
> .. an order of 100, 50 last week, 25 so far this week, with 25 left for next week.

What if:

an order of 100, 10 two weeks ago, 40 last week, 25 so far this week, with 25 left for next week.

Or would you prefer ther rows fixed:

    Previous weeks
    This week
    Next weeks

/gustav
0
 

Author Comment

by:D4430
ID: 40525880
Here is a link to a support article that I used to create a function that calculates the grouped running sum in a query. I modified the function to ask for the order quantity and then have the function start with the order quantity and subtract the running sum.

http://support.microsoft.com/KB/205183
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Suggested Courses

762 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