Results 1 to 3 of 3
  1. #1
    janmack79 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    30

    SumIf Calculation in an Update Query

    Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	65.8 KB 
ID:	31706



    Hi All,

    I am trying to update a field in one table with the sum data from another table where they match on the Program Name and for Period 1. Attached is a screen print off how I set up my Query and the error message that I get back. Can someone advise on what I am doing wrong in the calculation??

    Thank You
    Janice

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    The bad thing about Access:
    you cannot SUM AND UPDATE in the same query.

    you can sum into a table, then take that table THEN run the update.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Saving calculated data, especially aggregate calcs, is usually not a good idea. Calculate when needed.
    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.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-28-2017, 02:05 AM
  2. Update query with calculation trouble
    By NightWalker in forum Queries
    Replies: 10
    Last Post: 12-13-2016, 06:17 PM
  3. Replies: 5
    Last Post: 08-17-2016, 10:09 AM
  4. SumIF Statement in Query
    By athyeh in forum Queries
    Replies: 2
    Last Post: 09-09-2013, 04:25 PM
  5. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM

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