Results 1 to 4 of 4
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Calculation


    Attached there is an Excel spreadsheet. I may have a long story but in short, my challenge is to get the result in Access of the field marked in blue. I want a query that results in exactly the information as this spreadsheet. The rules for our budget follow below as well as the analysis for field E7 on the spreadsheet.

    1. In this example the business started 1 Jan 2018. We want to budget on every Income and expense account. There is no problem with that, don’t waste time on that please. We start by having a t09Budget table which connect to every account through a foreign key BudItm_ID.
    2. In a separate table t09InflationRate, there is a budgeted Inflation rate on the 1st of Jan every following year.
    3. We thought it right to create a table t09BudgetScenarios with fields including BudItm_ID, StartDate Enddate and BudAmount. This supplies the opening amount for every budget item, by creating one record at a time.
    4. As can be seen on my spreadsheet, I would like to add the budgeted inflation every 1Jan to the amount on the previous December.
    5. In field E7 on the spreadsheet it can be seen that the 50 is added permanently to the series of amounts that follows. The 1000 is added once off and not included in the following months numbers. These two fields are in t09BudgetScenarios and the dates help to get it right.
    6. My “Access” challenge is to find the previous months budget amount, to be able to do all the calculations to return the current month’s amount.
    Attached Files Attached Files

  2. #2
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    I would like to make it easier. I simply need to learn how to find the amount in the same field of the previous month to calculate in this month. Someone went through all the effort and showed me a way some months ago. I downloaded the discussion, and didn't give attention and now I fail to find it.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    accesstos's Avatar
    accesstos is offline Expert
    Windows XP Access 2007
    Join Date
    Dec 2018
    Location
    Greece
    Posts
    551
    Quote Originally Posted by Perfac View Post
    I would like to make it easier. I simply need to learn how to find the amount in the same field of the previous month to calculate in this month. Someone went through all the effort and showed me a way some months ago. I downloaded the discussion, and didn't give attention and now I fail to find it.
    I think that you are talking about this thread: https://www.accessforums.net/showthread.php?t=75097

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calculation
    By Erictsang in forum Access
    Replies: 30
    Last Post: 08-28-2017, 08:35 AM
  2. Help with a calculation
    By Cdray in forum Programming
    Replies: 9
    Last Post: 06-26-2015, 09:37 AM
  3. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM
  4. Calculation
    By magootrp4 in forum Programming
    Replies: 1
    Last Post: 03-12-2012, 12:38 PM
  5. Calculation value not less than 1
    By vbpeterson in forum Queries
    Replies: 10
    Last Post: 08-17-2011, 06:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums