Results 1 to 2 of 2
  1. #1
    polishfc is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2020
    Posts
    3

    Question Access Sumifs - Update Query


    Hi All,

    I’m looking to transitions updates done to a database from excel to access. The bulk of the database consists of sumifs that I was hoping could be mimicked in Access, but running into an issue (i.e. probably don’t know how to do it properly)

    In the database file (Hours File) I have a column for location code, period end date, and budgeted hours budgeted. The budgeted hours are derived from a budget file that break down the hours by person, location codes, and period end date. What I am looking for access to do is to update budgeted hours for each location and each period end date.

    The sumifs that I am trying to replicate in Access can be found in column C and the data would be update in [Hours File]![Hours Budget] column.

    Appreciate all the help in advance.
    Attached Files Attached Files

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    your query would be something like

    Code:
    SELECT tblHours.LocationID,tblHours.PeriodEndDate, Sum(tblBudget.Hours) as HoursBudget
    FROM tblHours INNER JOIN tblBudgets ON tblHours.LocationID=tblBudget.LocationID AND  tblHours.PeriodEndDate=tblBudget.PeriodEndDate
    GROUP BY tblHours.LocationID, tblHours.PeriodEndDate
    edit: note that access is not like excel, one significant difference being you do not store calculated data (such as this) in a table, you calculate it as and when required.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2018, 11:44 AM
  2. Replies: 1
    Last Post: 10-27-2016, 12:14 PM
  3. Sumifs for access
    By MrJukas in forum Access
    Replies: 7
    Last Post: 11-20-2015, 07:49 AM
  4. update query in access vba
    By thep in forum Access
    Replies: 1
    Last Post: 01-29-2014, 03:18 PM
  5. Access update query not working
    By Paul-NYS in forum Queries
    Replies: 5
    Last Post: 03-03-2012, 02:16 PM

Tags for this Thread

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