Results 1 to 4 of 4
  1. #1
    brown1 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    2

    need running sum in the same field(circular)

    i am new to msaccess.
    i want to get a sum of two field and result should be stored in the first field
    for example
    i have : two fields named availableproduct,, newpurchaseproduct
    now i want availableproduct=availableproduct+newpurchaseprodu ct
    result should be stored in same location i.e. availableproduct
    another two field,, availableproduct,,sellproduct
    availableproduct=availableproduct-sellproduct.


    please help how do i solve it..

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Saving aggregate data is usually not a good idea. The saved data can become 'out-of-sync' with the detail records. Are you saving records that are transactions of product sales and purchases? Calculate aggregate data from the raw transactions detail data on reports.
    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
    brown1 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    2

    need running sum

    sir , i attached mydb database.. i want purchase_qunty and purchase_amnt as running sum.. every time when i added data through product entry.. this two field summed up with previous data.as well as
    when i sell product ,, this two filed subtracted the selling amnt and sell-qunty.
    so that i make report of product available in my hand..
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    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: 6
    Last Post: 08-10-2012, 09:30 AM
  2. Replies: 2
    Last Post: 06-26-2012, 10:31 AM
  3. Replies: 6
    Last Post: 06-27-2011, 07:11 PM
  4. Replies: 1
    Last Post: 03-05-2011, 03:05 PM
  5. Expression builder error, circular reference
    By cowboy in forum Programming
    Replies: 3
    Last Post: 07-15-2010, 12:55 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