Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE TABLE FROM ANOTHER

Status
Not open for further replies.

macke

Technical User
Oct 14, 2005
2
GB
I have 3 tables. One is a Inventory

STOCK_CODE/DESCRIPTION (LOOKUP FIELD)/ LOCATION/ NO OF BOXES/BOX QTY/QTY (CALCULATED NO OF BOXES * BOX QTY.

the others are Stock_In and Stock_Out.

The user opens either Stock_In or Stock_Out, inputs the Stock_Codes received, No of Boxes & Qty per Box and presses a Save button. I would like the calculated Qty field in this table to update the Qty in the Inventory table. Obviously either subtract in the case of Stock_Out and add or append in the case of Stock_In.

Any help appreciated



 
You should be able to link Stock_In.db and Stock_Out.db to Inventory.db on each form on STOCK_CODE.

The save button on each form can just take the # of boxes times Qty per box, and add/subtract this from the Qty field as appropriate to each form.

Being linked, the form should prevent other users from changing the specific record while this entry is being done.

Does this answer your question?


Tony McGuire
"It's not about having enough time. It's about priorities.
 
Hi

Yes it does make sense, but not sure of the code to attach to the save button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top