Results 1 to 3 of 3
  1. #1
    wajidpharmacist007 is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Nov 2017
    Posts
    1

    expression builder


    Hi i am new to access database i am making an inventory database in which i have two tables first inventory having ID , inventory items, fields and form of inventory table too which have calculated field of current stock, in second table (Inventory Transaction) which have ID, Transaction Item, and Quantity fields. i want to calculate the current stock of specific item by using DSum function on Quantity field in which criteria should be on ID

  2. #2
    knarfreppep is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Feb 2015
    Location
    Adelaide, Australia
    Posts
    106
    DSum("lngQuantity","tblInventory_Items")

    I suggest you should never store a value which can be re-calculated whenever needed.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Why do you want to use DSum() function? Why not an aggregate GROUP BY query? Review http://allenbrowne.com/AppInventory.html
    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. Expression Builder?
    By ddeaton66 in forum Queries
    Replies: 1
    Last Post: 09-16-2016, 08:37 AM
  2. Replies: 4
    Last Post: 05-03-2016, 01:51 PM
  3. Expression Builder Help
    By Vibhor in forum Access
    Replies: 4
    Last Post: 12-11-2013, 11:42 AM
  4. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  5. Expression builder
    By PJ_d_DJ in forum Access
    Replies: 2
    Last Post: 02-24-2011, 03:38 AM

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