Results 1 to 4 of 4
  1. #1
    Lparra is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    9

    How to store the total value of a colum from a query in a field in another table?

    Click image for larger version. 

Name:	Main Form.jpg 
Views:	12 
Size:	125.4 KB 
ID:	35949
    I have a Parts Table with parts numbers and additional information also I have a subform linked to a Purchase orders table.
    On the Purchase orders table I have a column Quantity which is the quantity order on that specific PO.
    Now what I am trying to do is calculate the Below stock Level Qty field which is in the Parts Table
    by the following formula: Below stock Level Qty = Recommended stock level - (Quantity on Hand + the total quantity of pcs ordered in all the PO's from Purchase Orders table which in this case will be "3")


    how do I capture the value of the total from column Quantity on the Purchase Orders table to use it in the formula?

    I appreciate any help provided!
    Attached Thumbnails Attached Thumbnails Main Form.JPG  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in the subform footer,
    ad a text box , set the source = Sum(Qty)

  3. #3
    Lparra is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    9
    Hello,

    Thanks for your prompt response. So I cretaed a text box in the subform footer and named it Total Ordered how can I capture this value of this text box and store it in a table?

    Thanks,

  4. #4
    Lparra is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    9
    Click image for larger version. 

Name:	Capture 1.JPG 
Views:	14 
Size:	242.8 KB 
ID:	35953
    My low stock level is a calculated field which is = Recomended Stock Level - Quantity on Hand but I need to take in consideration the quantities in PO's that have been ordered already there fore I need to include the Total Quantity Ordered in the formula but that value is a Sum from a column from a different table.

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

Similar Threads

  1. How to store login ID in a table field
    By SAM75 in forum Forms
    Replies: 8
    Last Post: 04-14-2018, 03:50 PM
  2. Checkbox to store into Table Field
    By sud2017 in forum Forms
    Replies: 10
    Last Post: 11-15-2017, 01:33 PM
  3. Store an IIF option is a table field
    By archie1_za in forum Database Design
    Replies: 10
    Last Post: 11-01-2017, 06:54 AM
  4. Replies: 4
    Last Post: 10-16-2013, 01:39 AM
  5. Replies: 0
    Last Post: 09-25-2006, 03:42 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