Results 1 to 2 of 2
  1. #1
    tomtom1126 is offline Novice
    Windows 11 Office 365
    Join Date
    Aug 2023
    Posts
    1

    Query for two table calculation

    Dear All,

    I am new in this, and have a question for the below:

    Table 1 for Product:
    Product / Lot / Qty
    ABC123 / A / 1000
    ABC123 / B / 1100
    ABC123 / C / 1200
    ABC123 / D / 1050

    Table 2 for Invoice:
    Product / Lot / Qty
    INV123 / A / 500
    INV124 / A / 450


    INV125 / A+B / 100

    I want accessing helpling to assign the Lot in Table "2" ("A" / "B" / "C" .......).
    exsample : Table "2" with 3 invoices total qty 1050, in table "1" deduct by lot "A" (1000), 50 will be deduct from lot "B" ........

    MS Access can help for this?

    Thanks so much for help.

    Regards
    Tom

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    You are looking a a basic inventory system.
    Generally speaking it is very unwise to store running quantities, you should really have an transaction table that keeps the all the records of your stock movements In and Out as well as any stock checks so you can always then calculate your current balance.

    Two guides are available to assist you with this - read and digest Allen Browne's Inventory page: http://allenbrowne.com/AppInventory.html

    Also install the newest Northwind Sample database from the Access templates, I believe it has a sample inventory section as well.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 1
    Last Post: 10-04-2020, 09:33 AM
  2. Replies: 8
    Last Post: 02-26-2020, 10:43 AM
  3. Replies: 2
    Last Post: 06-17-2015, 09:08 PM
  4. Replies: 3
    Last Post: 05-10-2013, 08:00 AM
  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