[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Access 2010 Rolling Deduction or Negative Sum?

Posted on 2014-12-16
6
Medium Priority
?
167 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
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
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.

 
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 52

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

872 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