Solved

Access 2010 Rolling Deduction or Negative Sum?

Posted on 2014-12-16
6
154 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 200 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 300 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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 50

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

688 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