Results 1 to 4 of 4
  1. #1
    aaslezak is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    34

    Update query and add to total

    I have two tables Summary by project with the fields Project and sum of remaining hours and Estimated hours summary with the fields project and sum of estimated hours. I join them by project number and select them. In the update by on the sum of remaining hours I want to add the estimated hours to the remaining hours and the formula I use is [SumOfRemaining Hours]+[SumOfEstimated Hours] but after the update instead of getting the sum of the two I get blanks. The field names are correct and they are both numeric so why does it not add them up. Is there a different formula to add another value to the current value?
    Attached Thumbnails Attached Thumbnails Summary Databases.JPG  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why are you saving aggregate data to table? Normally, detail data is input and aggregate data is calculated 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.

  3. #3
    aaslezak is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    34
    Its all right I figured it out when I put the table names in then it worked. [AMA IT Summary By Project].[SumOfRemaining Hours]+[AMA IT Estimated Summary Hours].[SumOfEstimated Hours]

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    As June alluded to, it is usually unnecessary to save anything to a table when it can be derived from a calculation (as matter as fact, it often can cause data integrity issues to do so).

    Why do you want to store it in a table, instead of just getting the value from a query calculation?

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

Similar Threads

  1. Update "Total" Field on Form
    By dargo72 in forum Forms
    Replies: 2
    Last Post: 04-01-2013, 07:35 AM
  2. Replies: 3
    Last Post: 10-17-2012, 09:24 AM
  3. Help on Total Query
    By bhofmann in forum Access
    Replies: 5
    Last Post: 04-26-2012, 08:04 AM
  4. Total Query
    By joannakf in forum Queries
    Replies: 1
    Last Post: 12-22-2011, 05:35 PM
  5. Replies: 26
    Last Post: 10-18-2011, 03:29 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