Results 1 to 3 of 3
  1. #1
    laipeka is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    1

    Unhappy Subtracting two records

    Hi I am trying to make a query that sums up the amount of a record and minus the sum from another record. For example,
    Amount Budget
    12 100
    100
    10.5
    5
    Sum=27.5
    minus the sum of Amount from the budget which I will get 100-27.5=72.5. Is this possible?



    Please I need your help. Really appreciate any help.

    Thanks
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Review http://allenbrowne.com/subquery-01.html
    Look at the example: Get the value in another record
    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
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    You can create a field in select Query Difference:[Budget] -[Amount]
    Than create a aggreegate query with Sum of Difference as your anwser.

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

Similar Threads

  1. vba > subtracting time
    By metokushika in forum Access
    Replies: 2
    Last Post: 12-09-2014, 09:17 PM
  2. Adding/Subtracting
    By JayX in forum Programming
    Replies: 3
    Last Post: 12-15-2011, 03:13 PM
  3. Adding/Subtracting
    By JayX in forum Access
    Replies: 1
    Last Post: 12-15-2011, 01:47 PM
  4. Subtracting Fields
    By zakslaher in forum Access
    Replies: 15
    Last Post: 03-30-2010, 09:36 AM
  5. Subtracting Records
    By e13851mlee in forum Programming
    Replies: 1
    Last Post: 12-17-2009, 04:50 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