Results 1 to 5 of 5
  1. #1
    pncbiz is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2020
    Location
    Maryland
    Posts
    66

    Parsing contract data overlapping fiscal years

    I'm building a database to track budgets, contracts, orders, and invoices. Right now, I'm focused on the budget and contract portion. Both are built (tables, forms) and operating indepedently; now I need to start building the ties between them.

    I want the budget entry form to automatically calculate what the projected obligation will be based on the contracts in the database, and display that as an "Obligated" number. I can use DSUM for that (already have it, actually), but I want to be able to only present the amounts relevant to this fiscal year, since contracts dates and fiscal years rarely align.

    Example: FY21 starts 1 Jul 20, ends 30 Jun 21. Contract A has a start date of 1 Oct 20, end date of 30 Sep 21, and a total amount of $12,000. In the budget entry form, for that cost center, I want the form to show $9,000 in Obligated funds (so the user knows they have to budget AT LEAST $9,000), because the contract only has 9 months in FY21

    Another example: FY21 starts 1 Jul 20, ends 30 Jun 21. Contract A has a start date of 1 Apr 20, end date of 31 Mar 21, and a total amount of $12,000. In the budget entry form, for that cost center, I want the form to show $9,000 in Obligated funds (so the user knows they have to budget AT LEAST $9,000), because the contract overlaps into FY21 by 9 months.

    I have built a FY table, with FYID (two digit fiscal year), FYSTART (date), and FYEND (date) to provide the reference information. What's the best approach to parsing that contract data so I only calculate the relevant amounts for the desired fiscal year?



    Appreciate whatever ideas you can offer.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    A budget record for each year with reference to the contract record. Either enter the budget amount as dollars or indicate percentage of contract to apply and calculate the dollars.
    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.

  3. #3
    pncbiz is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2020
    Location
    Maryland
    Posts
    66
    Thanks for taking time to reply. I'd rather have the database do the math. I have a budget record for each FY (by department and cost code), but would like to have Access calculate how much to allocate against that record for that contract. Is that in the too-hard category?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    You have to provide it some parameters to base calc on. So maybe indicate date range in budget record and code calculates percentage based on overall date range in contract and then uses that percentage to calculate $. Sounds complicated. Calculating elapsed period can be tricky. Months don't have same number of days. How do you want to deal with ranges that start/end mid-month? The budget calcs could end up with values that when summed are greater/less than contract amount.
    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.

  5. #5
    pncbiz is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jul 2020
    Location
    Maryland
    Posts
    66
    I like that idea! Turn the date overlap into a percentage (based on days), then apply that against the overall amount.
    I agree - elapsed time is tough because of the reasons you state. But the budget doesn't have to be within the penny (just the dollar!) so a percentage method should be good enough. That would also address the issue of start/end mid-month.
    Appreciate the help.

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

Similar Threads

  1. Replies: 12
    Last Post: 08-10-2014, 12:54 PM
  2. Splitting and Suming Overlapping Data?
    By TinyRobot in forum Queries
    Replies: 3
    Last Post: 06-17-2014, 02:23 PM
  3. Replies: 3
    Last Post: 12-13-2013, 10:28 AM
  4. Parsing data
    By crowegreg in forum Queries
    Replies: 9
    Last Post: 09-23-2013, 03:34 PM
  5. Queries with Overlapping Data
    By ineedaccesshelp in forum Queries
    Replies: 1
    Last Post: 11-28-2012, 11:48 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